From: Tom Hughes Date: Fri, 17 Nov 2023 14:52:48 +0000 (+0000) Subject: Force rubygems 3.4.10 for github actions X-Git-Tag: live~942^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/6cd9caa4e1c1279f06e5aae2c19426af5dbef3df Force rubygems 3.4.10 for github actions This works around a problem where mini_racer doesn't like the psych in the GitHub Actions images for ruby 3.0 and 3.1 but it fine with the ruby 3.2 image that uses a newer rubygems version. https://github.com/rubyjs/mini_racer/issues/289 --- diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2050aaf3f..0608b699b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,6 +19,7 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: ${{ env.ruby }} + rubygems: 3.4.10 bundler-cache: true - name: Run rubocop run: bundle exec rubocop --format fuubar @@ -32,6 +33,7 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: ${{ env.ruby }} + rubygems: 3.4.10 bundler-cache: true - name: Run erblint run: bundle exec erblint . @@ -45,6 +47,7 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: ${{ env.ruby }} + rubygems: 3.4.10 bundler-cache: true - name: Cache node modules uses: actions/cache@v3 @@ -69,6 +72,7 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: ${{ env.ruby }} + rubygems: 3.4.10 bundler-cache: true - name: Run brakeman run: bundle exec brakeman -q @@ -84,6 +88,7 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: ${{ env.ruby }} + rubygems: 3.4.10 bundler-cache: true - name: Setup database run: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3ee6129e1..2588a737f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -23,6 +23,7 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} + rubygems: 3.4.10 bundler-cache: true - name: Cache node modules uses: actions/cache@v3