From f6d9b7444131988a7ad905488dba8b52e1b69d04 Mon Sep 17 00:00:00 2001 From: Mattia Giuffrida Date: Mon, 23 Sep 2024 10:57:43 +0100 Subject: [PATCH] Update CI --- .github/workflows/ci.yml | 24 ++++++++++++++---------- .github/workflows/publish.yml | 6 +++--- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5b5015..f3512f4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,16 +16,16 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - name: Set up Ruby 2.6 + - name: Set up Ruby 2.7 uses: ruby/setup-ruby@v1 with: - ruby-version: 2.6 + ruby-version: 2.7 - name: Rubocop run: | - gem install bundler + gem install bundler -v 2.4.22 bundle config set without 'development test' bundle config set with 'lint' bundle install @@ -41,16 +41,20 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby: ['2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2'] + ruby: ['2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - - name: Install system dependencies - run: sudo apt install libcurl4-openssl-dev - - name: Install Ruby dependencies - run: bundle install --jobs 4 --retry 3 + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install libcurl4-openssl-dev + - name: Build + run: | + gem install bundler -v 2.4.22 + bundle install --jobs 4 --retry 3 - name: Test run: bundle exec rake diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1d82021..5383eca 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,12 +10,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - name: Set up Ruby 2.6 + - name: Set up Ruby 2.7 uses: ruby/setup-ruby@v1 with: - ruby-version: 2.6.x + ruby-version: 2.7 - name: Publish to RubyGems run: |