Skip to content

Commit

Permalink
Make Rubocop a separate CI step (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
imanel authored Feb 20, 2022
1 parent 736a751 commit 9160634
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,31 @@
name: Test

on: [push, pull_request]
on:
push:
branches:
- 'master'
pull_request:
branches:
- '*'

jobs:
rubocop:
runs-on: ubuntu-latest
name: Rubocop
steps:
- uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'

- name: Install gems
run: bundle install

- name: Run Rubocop
run: bundle exec rubocop

test:
strategy:
fail-fast: false
Expand Down Expand Up @@ -33,4 +56,4 @@ jobs:
run: bundle install

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

0 comments on commit 9160634

Please sign in to comment.