Skip to content

Commit 12a862c

Browse files
authored
Bring back unit test coverage report
1 parent a0d0c92 commit 12a862c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,27 @@ jobs:
7272
- name: Lint API
7373
run: yarn lint-api
7474

75+
coverage:
76+
runs-on: ubuntu-latest
77+
timeout-minutes: 10
78+
steps:
79+
- uses: actions/checkout@v3
80+
- name: Use Node.js 18.x
81+
uses: actions/setup-node@v3
82+
with:
83+
node-version: 18.x
84+
cache: 'yarn'
85+
- name: Install dependencies
86+
run: |
87+
yarn --frozen-lockfile
88+
yarn install-addons
89+
- name: Unit test coverage
90+
run: |
91+
yarn test-unit-coverage --forbid-only
92+
EXIT_CODE=$?
93+
./node_modules/.bin/nyc report --reporter=cobertura
94+
exit $EXIT_CODE
95+
7596
test-unit-parallel:
7697
timeout-minutes: 20
7798
strategy:

0 commit comments

Comments
 (0)