Skip to content

Commit

Permalink
ci: report coverage from fork
Browse files Browse the repository at this point in the history
  • Loading branch information
tdstein committed Jun 3, 2024
1 parent d289322 commit 493670f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/coverage-report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Coverage Report
on:
workflow_run:
workflows: ["Coverage"]
types:
- completed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
actions: read
contents: read
pull-requests: write
jobs:
default:
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: coverage.xml
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: orgoro/[email protected]
with:
coverageFile: coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}
8 changes: 4 additions & 4 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
- run: make dev
- run: make test
- run: make cov-xml
- uses: orgoro/[email protected]
- uses: actions/upload-artifact@v4
with:
coverageFile: coverage.xml
thresholdAll: 0.8
token: ${{ secrets.GITHUB_TOKEN }}
name: coverage.xml
path: coverage.xml
retention-days: 1

0 comments on commit 493670f

Please sign in to comment.