Skip to content

Commit

Permalink
fix: support coverage reports on external PRs (#2087)
Browse files Browse the repository at this point in the history
* 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 <thomas@getunleash.ai>
  • Loading branch information
Gastón Fournier and thomasheartman committed Sep 27, 2022
1 parent 501c08a commit 65f2aaf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build_prs_jest_report.yaml
Expand Up @@ -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 }}

1 comment on commit 65f2aaf

@vercel
Copy link

@vercel vercel bot commented on 65f2aaf Sep 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

unleash-docs – ./website

unleash-docs-git-main-unleash-team.vercel.app
unleash-docs-unleash-team.vercel.app
unleash-docs.vercel.app

Please sign in to comment.