Skip to content

Commit

Permalink
Only run codecov on pr
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Kurait <[email protected]>
  • Loading branch information
AndreKurait committed Sep 7, 2024
1 parent cbd36c6 commit d3f7b8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,16 @@ jobs:
**/reports/jacoco/mergedReport/
- name: Upload to Codecov
if: github.event_name == 'pull_request'
uses: codecov/codecov-action@v4
with:
files: ${{ github.workspace }}/build/reports/jacoco/mergedReport/jacocoMergedReport.xml
flags: gradle-test
fail_ci_if_error: true
disable_search: true
# This step is limited to pull requests because Codecov uploads from
# push events require a token for security reasons. PR events use a token
# provided by GitHub Actions, but push events do not, causing uploads to fail.

python-e2e-tests:
runs-on: ubuntu-latest
Expand Down

0 comments on commit d3f7b8b

Please sign in to comment.