Skip to content

Commit

Permalink
Add coverage measurement and reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Dec 18, 2024
1 parent 592081d commit 5b4bd5b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Run tests
run: bundle exec rake spec
uses: paambaati/[email protected]
with:
coverageCommand: bundle exec rake spec
env:
CC_TEST_REPORTER_ID: 5dd5918c241368d9507f58b71461de2d22d4f18ca23aadb23dc7ff2d707dabf6
lint:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions caber.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rspec-rails", "~> 6.1"
spec.add_development_dependency "factory_bot_rails", "~> 6.4"
spec.add_development_dependency "standardrb"
spec.add_development_dependency "simplecov", "~> 0.22"
end
3 changes: 3 additions & 0 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# This file is copied to spec/ when you run 'rails generate rspec:install'
require "simplecov"]
SimpleCov.start :rails

require "spec_helper"
ENV["RAILS_ENV"] ||= "test"
require File.expand_path("../dummy/config/environment", __FILE__)
Expand Down

0 comments on commit 5b4bd5b

Please sign in to comment.