Skip to content

Commit

Permalink
CI: Run specs even if Rubocop checks fail
Browse files Browse the repository at this point in the history
We want to know the outcome of linting *and* specs.
  • Loading branch information
DeeDeeG committed Apr 28, 2024
1 parent 494ef96 commit a3b82d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/specs-and-rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ jobs:
- name: Run docker-compose build
run: docker-compose build
id: docker-compose-build

- name: Run rubocop
run: docker-compose run web rubocop

- name: Run specs
if: ${{ !cancelled() && steps.docker-compose-build.outcome == success }}
run: docker-compose run -e "RAILS_ENV=test" web rake db:test:prepare spec

- name: Report results to codeclimate (for job success)
Expand Down

0 comments on commit a3b82d1

Please sign in to comment.