Skip to content

Commit

Permalink
Add validation to push coverage only on master
Browse files Browse the repository at this point in the history
  • Loading branch information
blacksam07 committed Feb 13, 2024
1 parent ace189d commit 0ad5b90
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
test:
runs-on: ubuntu-latest
container: ${{ matrix.ruby }}
env:
CC_TEST_REPORTER_ID: cb01575b98b3b80848a3bc292ca6145860871470e5d0669453030d36578f9115
strategy:
fail-fast: false
matrix:
Expand All @@ -33,9 +31,9 @@ jobs:
timeout-minutes: 1
- name: Test & publish code coverage
uses: paambaati/[email protected]
if: matrix.coverage
if: matrix.coverage && github.ref == 'refs/heads/master'
env:
CC_TEST_REPORTER_ID: ${{ env.CC_TEST_REPORTER_ID }}
CC_TEST_REPORTER_ID: cb01575b98b3b80848a3bc292ca6145860871470e5d0669453030d36578f9115
with:
coverageCommand: bundle exec rspec
coverageLocations: ${{ github.workspace }}/coverage/coverage.json:simplecov
Expand Down

0 comments on commit 0ad5b90

Please sign in to comment.