1
0
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:
Gastón Fournier 2022-09-27 15:51:04 +02:00 committed by GitHub
parent 501c08a4b1
commit 65f2aaf6f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }}