Skip to content

Commit

Permalink
ci: report test profile to codecov
Browse files Browse the repository at this point in the history
Signed-off-by: black-desk <[email protected]>
  • Loading branch information
black-desk committed Oct 18, 2024
1 parent c9e852f commit 633fbe3
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,12 @@ jobs:
- name: Build & test
run: |
make
make test
make GO_COVERAGE_PROFILE=coverage.txt test
- name: Coverage report
run: |
export COVERAGE_REPORT=/tmp/io.github.black-desk.cgtproxy-test/coverage.txt &&
echo '```' > $GITHUB_STEP_SUMMARY &&
make COVERAGE_REPORT=$COVERAGE_REPORT test-coverage-report &&
cat $COVERAGE_REPORT >> $GITHUB_STEP_SUMMARY &&
echo '```' >> $GITHUB_STEP_SUMMARY
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

pass:
name: Pass
Expand Down

0 comments on commit 633fbe3

Please sign in to comment.