Skip to content

Commit

Permalink
Add simplecov-small-badge and add coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
delonnewman committed Oct 11, 2024
1 parent 534e5d4 commit e43daa2
Show file tree
Hide file tree
Showing 47 changed files with 71,283 additions and 13 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/rubyonrails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@ jobs:
run: bundle exec rails db:schema:load db:seed
- name: Run tests
run: bundle exec rake
- name: Publish code coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: "7b61fa9ea465e19ec3d750aafc3622cba4bf8b257d61f9ea20c46900bbe03fda"
with:
coverageLocations: |
${{github.workspace}}/coverage:simplecov
debug: true

lint:
runs-on: ubuntu-latest
Expand All @@ -54,7 +46,6 @@ jobs:
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
# Add or replace any other lints here
- name: Security audit dependencies
run: bundle exec rake bundle:audit:update bundle:audit:check
- name: Security audit application code
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public/js/submitter/
public/js/editor/
public/js/test/js/
/.yarn/
/coverage/
app/assets/javascripts/frontend/.calva/output-window/output.calva-repl
.vscode/settings.json

Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ end

group :test do
gem 'simplecov', require: false
gem 'simplecov_json_formatter'
gem 'simplecov-small-badge', require: false
gem 'rails-controller-testing'
end

Expand Down
8 changes: 7 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,8 @@ GEM
regexp_parser (2.6.2)
reline (0.5.10)
io-console (~> 0.5)
repo-small-badge (0.2.10)
victor (~> 0.3.0)
responders (3.1.1)
actionpack (>= 5.2)
railties (>= 5.2)
Expand Down Expand Up @@ -426,6 +428,9 @@ GEM
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov-small-badge (0.2.7)
repo-small-badge (~> 0.2.10)
simplecov (~> 0.18)
simplecov_json_formatter (0.1.4)
snaky_hash (2.0.1)
hashie
Expand Down Expand Up @@ -454,6 +459,7 @@ GEM
uri (0.13.0)
useragent (0.16.10)
version_gem (1.1.1)
victor (0.3.4)
warden (1.2.9)
rack (>= 2.0.9)
web-console (4.2.0)
Expand Down Expand Up @@ -535,7 +541,7 @@ DEPENDENCIES
sentimental
shortuuid
simplecov
simplecov_json_formatter
simplecov-small-badge
sprockets-rails
transit-rails
transit-ruby
Expand Down
5 changes: 5 additions & 0 deletions coverage/.last_run.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"result": {
"line": 52.2
}
}
Loading

0 comments on commit e43daa2

Please sign in to comment.