From e48b799f66e9b0d4a9fd5b11ba07892370ed0919 Mon Sep 17 00:00:00 2001 From: yuqi Date: Wed, 4 Sep 2024 16:56:31 +0800 Subject: [PATCH] Try to use codecov --- .github/workflows/build.yml | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 72cfcbf73b2..f3894b0072f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -109,20 +109,25 @@ jobs: catalogs/**/*.log catalogs/**/*.tar - - name: Jacoco Report to PR - id: jacoco - uses: madrapps/jacoco-report@v1.7.0 + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 with: - paths: ${{ github.workspace }}/**/build/reports/jacoco/test/jacocoTestReport.xml - token: ${{ secrets.GITHUB_TOKEN }} - min-coverage-overall: 40 - min-coverage-changed-files: 60 - title: 'Code Coverage Report' - debug-mode: false - update-comment: true - pass-emoji: ':green_circle:' - fail-emoji: ':red_circle:' - - name: Get the Coverage info - run: | - echo "Total coverage ${{ steps.jacoco.outputs.coverage-overall }}" - echo "Changed Files coverage ${{ steps.jacoco.outputs.coverage-changed-files }}" + file: ${{ github.workspace }}/**/build/reports/jacoco/test/jacocoTestReport.xml + +# - name: Jacoco Report to PR +# id: jacoco +# uses: madrapps/jacoco-report@v1.7.0 +# with: +# paths: ${{ github.workspace }}/**/build/reports/jacoco/test/jacocoTestReport.xml +# token: ${{ secrets.GITHUB_TOKEN }} +# min-coverage-overall: 40 +# min-coverage-changed-files: 60 +# title: 'Code Coverage Report' +# debug-mode: false +# update-comment: true +# pass-emoji: ':green_circle:' +# fail-emoji: ':red_circle:' +# - name: Get the Coverage info +# run: | +# echo "Total coverage ${{ steps.jacoco.outputs.coverage-overall }}" +# echo "Changed Files coverage ${{ steps.jacoco.outputs.coverage-changed-files }}"