Skip to content

Commit f47b373

Browse files
committed
Add rubocop linting step to CI build
So we don't accidentally introduce violations.
1 parent b38642d commit f47b373

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,18 @@ jobs:
2222
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
2323
steps:
2424
- uses: actions/checkout@v3
25+
2526
- name: Set up Ruby
2627
uses: ruby/setup-ruby@v1
2728
with:
2829
ruby-version: ${{ matrix.ruby-version }}
2930
rubygems: 3.4.10
3031
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
32+
33+
- name: Run linter
34+
if: matrix.ruby-version == '3.3' && matrix.gemfile == 'rails_7.2'
35+
run: bundle exec rubocop
36+
3137
- name: Run tests
3238
run: bundle exec rspec
3339

0 commit comments

Comments
 (0)