From 7bcfe96e847366863b7ac1d55da8dd13af1531d4 Mon Sep 17 00:00:00 2001 From: David Wessman Date: Sat, 30 Dec 2023 20:51:35 +0100 Subject: [PATCH] Github Actions: Skips gem update - Does not work with Ruby 2.6 and 2.7 anymore --- .github/workflows/tests.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7e201d4b..1e0b5802 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -40,8 +40,11 @@ jobs: - name: "Determine whether to upload coverage" if: ${{ env.CC_TEST_REPORTER_ID && startsWith(matrix.ruby-version, '3.0') && github.ref == 'refs/heads/main' }} run: echo UPLOAD_COVERAGE=1 >> $GITHUB_ENV + - name: Ruby 2.6 gem update + if: ${{ startsWith(matrix.ruby-version, '2.6') }} + run: gem update --system 3.2.3 - name: Install dependencies - run: gem update --system && bundle install + run: bundle install - name: Run tests if: ${{ !env.UPLOAD_COVERAGE }} run: bundle exec rake