drops tests for unsupported ruby versions and rails versions #64
This file contains 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 all tests | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby: | |
- 3.0 | |
- 3.1 | |
- 3.2 | |
name: Run gem tests | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup ruby ${{ matrix.ruby }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Cache gems | |
uses: actions/cache@v1 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ matrix.ruby }} | |
restore-keys: | | |
${{ runner.os }}-gems-${{ matrix.ruby }} | |
- name: Install bundler | |
run: gem install bundler | |
- name: Install gems | |
run: | | |
bundle config path vendor/bundle | |
bundle install | |
- name: Run tests | |
run: | | |
bundle exec rspec |