Skip to content

Commit

Permalink
Try to use codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
yuqi1129 committed Sep 4, 2024
1 parent 82b3d4b commit e48b799
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,20 +109,25 @@ jobs:
catalogs/**/*.log
catalogs/**/*.tar
- name: Jacoco Report to PR
id: jacoco
uses: madrapps/[email protected]
- 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/[email protected]
# 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 }}"

0 comments on commit e48b799

Please sign in to comment.