Skip to content

Commit

Permalink
Only push code coverage on push
Browse files Browse the repository at this point in the history
as the action running for pull requests does not have
access to the DeepSource DSN.
  • Loading branch information
raphael committed Sep 22, 2023
1 parent a597872 commit 480f757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -27,7 +27,7 @@ jobs:
env:
GOA_BRANCH: ${{ steps.extract_branch.outputs.branch }}
- name: Report test-coverage to DeepSource
if: ${{ matrix.os == 'ubuntu-latest' }}
if: github.event_name == 'push' && matrix.os == 'ubuntu-latest'
run: |
curl https://deepsource.io/cli | sh
./bin/deepsource report --analyzer test-coverage --key go --value-file ./cover.out
Expand Down

0 comments on commit 480f757

Please sign in to comment.