Skip to content

Commit

Permalink
try to set COVERAGE env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
scambra committed Sep 25, 2024
1 parent 8e8f1dd commit f3ecaa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ jobs:
rails: '5.2'
- ruby: '3.2'
rails: '6.1'
env: COVERAGE=true
coverage: true
timeout-minutes: 60
env:
Expand All @@ -122,8 +121,7 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: env
- run: bundle exec rake
- run: COVERAGE=${{ matrix.coverage}} bundle exec rake
# - run: "./cc-test-reporter after-build -t simplecov"
# if: ${{ matrix.coverage }}
- uses: actions/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'simplecov' if ENV['COVERAGE']
require 'simplecov' if ENV['COVERAGE'] == 'true'

ENV['RAILS_ENV'] = 'test'
require 'mock_app/config/environment'
Expand Down

0 comments on commit f3ecaa9

Please sign in to comment.