Skip to content

Commit 303a430

Browse files
committed
ci: generate test coverage lcov info
1 parent 82faafb commit 303a430

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/build.yml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
uses: actions/setup-node@v1
1919
with:
2020
node-version: ${{ matrix.node-version }}
21+
2122
- run: yarn install --frozen-lockfile
2223

2324
- run: yarn test

jest.config.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ module.exports = {
88
'!**/node_modules/**'
99
],
1010
coverageDirectory: 'coverage',
11-
coverageReporters: ['text', 'text-summary', 'html'],
11+
coverageReporters: [
12+
['lcovonly', { projectRoot: __dirname }],
13+
'text-summary',
14+
'html'
15+
],
1216
testMatch: ['**/?(*.)+(spec|test).[tj]s?(x)'],
1317
watchman: true,
1418
coverageThreshold: {

0 commit comments

Comments
 (0)