Add prefix functionality to scopes to facilitate multiple state machines on one model. #27
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: tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: [3.0, 3.1, 3.2] | |
gemfile: | |
- gemfiles/rails_6_1.gemfile | |
- gemfiles/rails_7_0.gemfile | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ruby/setup-ruby@v1 | |
env: | |
BUNDLE_GEMFILE: ${{ matrix.gemfile }} | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Run linter | |
env: | |
BUNDLE_GEMFILE: ${{ matrix.gemfile }} | |
run: bundle exec rubocop --parallel | |
- name: Run tests | |
env: | |
BUNDLE_GEMFILE: ${{ matrix.gemfile }} | |
run: bundle exec rake |