Skip to content

Commit

Permalink
use smokeshow for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ashgw committed Apr 9, 2024
1 parent e11cc54 commit d0e308b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,15 @@ jobs:
- name: Generate code coverage
run: |
cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml
- name: Upload to codecov.io
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true


- name: Generate code coverage
run: pip install smokeshow && smokeshow upload tarpaulin-report.html
env:
SMOKESHOW_GITHUB_STATUS_DESCRIPTION: CLI Coverage {coverage-percentage}
SMOKESHOW_GITHUB_COVERAGE_THRESHOLD: 100
SMOKESHOW_GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
SMOKESHOW_GITHUB_PR_HEAD_SHA: ${{ github.event.workflow_run.head.sha }}


# https://github.com/marketplace/actions/alls-green#why used for branch protection checks
check:
if: always()
Expand Down

0 comments on commit d0e308b

Please sign in to comment.