Skip to content

Commit

Permalink
Extract rubocop to a separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
lovro-bikic committed Oct 9, 2024
1 parent d84469e commit 345f2dc
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,18 @@ on:
branches: [master]

jobs:
ci:
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
bundler-cache: true
- name: Run rubocop
run: bundle exec rubocop
test:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -17,9 +28,6 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: bundle install
- name: Run rubocop
run: bundle exec rubocop
bundler-cache: true
- name: Run tests
run: bundle exec rspec

0 comments on commit 345f2dc

Please sign in to comment.