From b00a504bb9c6589052f6269ea5f426a04c6797b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Kautler?= Date: Tue, 11 Apr 2023 17:26:51 +0200 Subject: [PATCH] Improve Codecov settings 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 --- .github/workflows/branches-and-prs.yml | 2 ++ .github/workflows/release.yml | 2 ++ codecov.yml | 3 +++ 3 files changed, 7 insertions(+) create mode 100644 codecov.yml diff --git a/.github/workflows/branches-and-prs.yml b/.github/workflows/branches-and-prs.yml index ea4c97ef3e..0488b5af2b 100644 --- a/.github/workflows/branches-and-prs.yml +++ b/.github/workflows/branches-and-prs.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d0323c2537..31410c438c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000000..36031eb6e7 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,3 @@ +comment: + layout: "reach, diff, flags, files" + after_n_builds: 14