From fa7520c5533bcbbcb2f54addeccf5c436145c82b Mon Sep 17 00:00:00 2001 From: manuroe Date: Mon, 22 Apr 2024 14:59:51 +0200 Subject: [PATCH] Codecov: Add token for codecov-action@v3 to fix coverage report (#2727) Moving to v4 is blocked because of a fundamental issue with https://github.com/codecov/codecov-action/issues/1279 on our mac runners and because the reported coverage is [decreasing with v4](https://app.codecov.io/gh/element-hq/element-x-ios/pull/2719/flags) --- .github/workflows/integration-tests.yml | 2 ++ .github/workflows/ui_tests.yml | 2 ++ .github/workflows/unit_tests.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 9a171fbb9..30fd7b465 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -83,5 +83,7 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} flags: integrationtests diff --git a/.github/workflows/ui_tests.yml b/.github/workflows/ui_tests.yml index e953006f8..ffd3aceee 100644 --- a/.github/workflows/ui_tests.yml +++ b/.github/workflows/ui_tests.yml @@ -61,5 +61,7 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} flags: uitests diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index db9637373..b8a1187f5 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -62,4 +62,6 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} flags: unittests