Skip to content

Commit

Permalink
CI: Annotate errors for Github (#2328)
Browse files Browse the repository at this point in the history
* CI: Annotate errors for Github

As described on
https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions

* CI: Use github formatter for Rubocop
  • Loading branch information
runephilosof-abtion authored Oct 2, 2024
1 parent 63cd376 commit e5ffe16
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
with:
bundler-cache: true
- name: Rubocop
run: bin/rubocop
run: bin/rubocop --format github
brakeman:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -220,7 +220,7 @@ jobs:
bin/rake db:create
bin/rake db:schema:load
- name: rspec
run: bin/rspec
run: bin/rspec --format RSpec::Github::Formatter --format progress
- name: Archive capybara artifacts
uses: actions/upload-artifact@v4
if: failure()
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ end
group :test do
gem "capybara"
gem "rails-controller-testing"
gem "rspec-github", require: false
gem "simplecov"
gem "webmock"
end
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ GEM
rspec-expectations (3.13.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-github (2.4.0)
rspec-core (~> 3.0)
rspec-mocks (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
Expand Down Expand Up @@ -455,6 +457,7 @@ DEPENDENCIES
rails-controller-testing
rails-i18n
rollbar
rspec-github
rspec-rails (~> 7.0.1)
rubocop
rubocop-capybara
Expand Down

0 comments on commit e5ffe16

Please sign in to comment.