Ensure migration related cops are only running on migrations (#45) #98
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: [push, pull_request] | |
jobs: | |
main: | |
name: Ruby ${{ matrix.ruby }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby: | |
- 2.7 | |
- 3.0 | |
- 3.1 | |
- 3.2 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Install gems | |
run: bundle install | |
- name: RuboCop | |
run: bundle exec rubocop --parallel | |
- name: RSpec | |
run: bundle exec rspec |