Skip to content

Commit

Permalink
Upload coverage only on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanVqz committed Sep 23, 2024
1 parent 08ba8ed commit 1563642
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,12 @@ jobs:
run: bundle exec rspec

- name: Publish code coverage 🚀
if: contains(github.ref, 'main')
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocation: ${{github.workspace}}/coverage/coverage.json:simplecov
coverageCommand: bundle exec rspec
coverageLocations: |
${{github.workspace}}/coverage/coverage.json:simplecov
debug: true
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

0 comments on commit 1563642

Please sign in to comment.