chore(deps): update actions/cache action to v5 #60
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: | |
| push: | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # Test against Ruby versions matching our gemspec requirement (>= 2.6) | |
| ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3'] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/cache@v5 | |
| with: | |
| path: vendor/bundle | |
| key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gem- | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| - name: Install dependencies | |
| run: bundle check || bundle install --jobs=4 --retry=3 --path vendor/bundle | |
| - name: Run tests | |
| run: bundle exec rake | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: test-results-${{ matrix.ruby }} | |
| path: test-results |