diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index f9e1759..dfdbcff 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -6,7 +6,7 @@ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby -name: Ruby +name: Tests on: push: @@ -21,19 +21,17 @@ jobs: matrix: rspec-minor-versions: [6, 7, 8, 9, 10, 11, 12, 13] ruby-versions: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"] + env: + BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rspec_3.${{ matrix.rspec-minor-versions }}.gemfile steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-versions }} - - - name: install bundle - env: - BUNDLE_GEMFILE: gemfiles/rspec_3.${{ matrix.rspec-minor-versions }}.gemfile - run: bundle install + bundler-cache: true - name: Run tests run: bundle exec rake