From e8647a3372e34bb55857b713c158390a64e2c7c8 Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Fri, 12 Jul 2024 11:48:05 +0200 Subject: [PATCH] ci: allow coverage upload to fail Otherwise, PRs from (community) forks will never have green CI. In my opinion we can tolerate having no coverage info from the occasional community contributor as long as the tests are successful. Signed-off-by: Richard Steinmetz --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5df985bf4..e4e6aea19 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -50,7 +50,7 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} file: ./nextcloud/apps/mail/tests/clover.unit.xml flags: unittests - fail_ci_if_error: true + fail_ci_if_error: ${{ !github.event.pull_request.head.repo.fork }} integration-tests: runs-on: ubuntu-latest @@ -181,7 +181,7 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} file: ./nextcloud/apps/mail/tests/clover.integration.xml flags: integrationtests - fail_ci_if_error: true + fail_ci_if_error: ${{ !github.event.pull_request.head.repo.fork }} frontend-unit-test: runs-on: ubuntu-latest name: Front-end unit tests