jsonapi-authorization working with Rails 6.1; Ruby 3.1 #3
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
branches: ['**'] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: | |
- 2.7.5 | |
- 3.1.6 | |
rails: | |
- 6.0 | |
- 6.1 | |
env: | |
APPRAISAL_CMD: "appraisal rails_${{ matrix.rails }}_pundit_2" | |
name: Ruby ${{ matrix.ruby }} Rails ${{ matrix.rails }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Install appraisal | |
run: gem install appraisal | |
- name: Install dependencies | |
run: "$APPRAISAL_CMD bundle install --jobs 4 --retry 3" | |
- name: Run tests | |
run: "$APPRAISAL_CMD rake test" |