From 65f2aaf6f53d8a8a5ec2eaa1e1b956234b1a4ef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Tue, 27 Sep 2022 15:51:04 +0200 Subject: [PATCH] fix: support coverage reports on external PRs (#2087) * fix: support coverage reports on external PRs * removed the coverage comment on the PR until we can investigate this further Co-authored-by: Thomas Heartman --- .github/workflows/build_prs_jest_report.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_prs_jest_report.yaml b/.github/workflows/build_prs_jest_report.yaml index 3f3857c267..1e4977fa35 100644 --- a/.github/workflows/build_prs_jest_report.yaml +++ b/.github/workflows/build_prs_jest_report.yaml @@ -33,16 +33,22 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'yarn' - name: Tests on ${{ matrix.node-version }} + id: coverage uses: ArtiomTr/jest-coverage-report-action@v2 with: annotations: none package-manager: yarn - github-token: ${{ secrets.GITHUB_TOKEN }} test-script: yarn run test:coverage:jest base-coverage-file: ./coverage/report.json + output: report-markdown env: CI: true TEST_DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres NODE_ENV: test PORT: 4243 + # - name: Report coverage on ${{ matrix.node-version }} + # uses: marocchino/sticky-pull-request-comment@v2 + # with: + # # pass output from the previous step by id. + # message: ${{ steps.coverage.outputs.report }}