Skip to content

Commit

Permalink
chore(ci): run linting as separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorton committed Sep 21, 2024
1 parent 8b7d10e commit b318da7
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ jobs:
- '3.2'
- '3.3'
rails-version:
- '6.1'
- '7.0'
- '7.1'
- '7.2'

env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.rails-version }}.gemfile

Expand All @@ -33,4 +34,19 @@ jobs:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

- name: Run tests
run: bundle exec rake
run: bundle exec rake spec

lint:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

- name: Run linting with RuboCop
run: bundle exec rake rubocop

0 comments on commit b318da7

Please sign in to comment.