From 4e9991a1e36b86ef4253819214b86325b7f4cdb1 Mon Sep 17 00:00:00 2001 From: yaozm Date: Thu, 14 Mar 2024 12:12:28 +0800 Subject: [PATCH] ci(tests): Add Clover.xml file for Codecov upload - Add `clover.xml` file for Codecov upload --- .github/workflows/tests.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index efffbb5..87667dc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -57,9 +57,15 @@ jobs: - name: Execute tests run: composer test-coverage - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4 - with: - token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos - fail_ci_if_error: false # optional (default = false) - verbose: true # optional (default = false) +# - name: Upload coverage to Codecov +# uses: codecov/codecov-action@v4 +# with: +# files: ./clover.xml +# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos +# fail_ci_if_error: true # optional (default = false) +# verbose: true # optional (default = false) + + - name: "Upload coverage to Codecov via codecov bash script" + env: + CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}" + run: "bash <(curl -s https://codecov.io/bash) -f clover.xml || true"