From 493670f53427d0ac883c5e560366aa584ce7eb04 Mon Sep 17 00:00:00 2001 From: tdstein Date: Mon, 3 Jun 2024 11:19:47 -0400 Subject: [PATCH] ci: report coverage from fork --- .github/workflows/coverage-report.yaml | 26 ++++++++++++++++++++++++++ .github/workflows/coverage.yaml | 8 ++++---- 2 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/coverage-report.yaml diff --git a/.github/workflows/coverage-report.yaml b/.github/workflows/coverage-report.yaml new file mode 100644 index 00000000..df20d330 --- /dev/null +++ b/.github/workflows/coverage-report.yaml @@ -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/coverage@v3.1 + with: + coverageFile: coverage.xml + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 9f931f09..3ddec0ab 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -18,8 +18,8 @@ jobs: - run: make dev - run: make test - run: make cov-xml - - uses: orgoro/coverage@v3.1 + - 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