diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d1d43bf..41b1604 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,10 +8,12 @@ jobs: strategy: matrix: ruby: [3.1, 3.2, 3.3] - container: - image: ruby:${{ matrix.ruby }} steps: - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true - run: gem install bundler - run: bundle install --jobs 4 --retry 3 - run: bundle exec rake @@ -20,12 +22,15 @@ jobs: needs: [test] if: github.event_name == 'push' runs-on: ubuntu-latest - container: - image: ruby:3.3 steps: - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "3.3" + bundler-cache: true - run: gem install bundler - run: bundle install --jobs 4 --retry 3 + - run: chown root:root . - uses: paambaati/codeclimate-action@v8.0.0 env: CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}