Skip to content

Commit

Permalink
Improve Codecov settings
Browse files Browse the repository at this point in the history
Fail the CI build if the Codecov uploading failed.
Show more detailed information in the Codecov comment.
Do not update the Codecov comment 13 times, but post it after all 14 reports were uploaded
  • Loading branch information
Vampire committed Apr 11, 2023
1 parent e97e2ed commit b00a504
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/branches-and-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,5 @@ jobs:
arguments: --no-parallel --stacktrace ghActionsBuild "-Dvariant=${{ matrix.variant }}" "-DjavaVersion=${{ matrix.java }}"
- name: 'Upload to Codecov.io'
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ jobs:
./gradlew --stop
- name: 'Upload to Codecov.io'
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true

release-spock:
runs-on: ${{ matrix.os }}
Expand Down
3 changes: 3 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
comment:
layout: "reach, diff, flags, files"
after_n_builds: 14

0 comments on commit b00a504

Please sign in to comment.