mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
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 <thomas@getunleash.ai>
This commit is contained in:
parent
501c08a4b1
commit
65f2aaf6f5
8
.github/workflows/build_prs_jest_report.yaml
vendored
8
.github/workflows/build_prs_jest_report.yaml
vendored
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user