Merge pull request #912 from rails/dependabot/github_actions/actions/… #330
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: Run tests | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3', '3.4','head'] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler: ${{ (matrix.ruby < '3' && '2.4.21') || 'latest' }} | |
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
| - run: bundle exec thor spec |