Skip to content

Commit 674aac3

Browse files
committed
Add code coverage
1 parent e61237b commit 674aac3

File tree

5 files changed

+2718
-4
lines changed

5 files changed

+2718
-4
lines changed

.github/workflows/nodejs.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,20 @@ jobs:
2828
cache: 'npm'
2929
- run: npm ci
3030
- run: npm run lint
31-
31+
# coverage:
32+
# name: Coverage check
33+
# runs-on: ubuntu-latest
34+
# steps:
35+
# - uses: actions/checkout@v2
36+
# - name: Code coverage
37+
# uses: actions/setup-node@v2
38+
# with:
39+
# node-version: 12.x
40+
# cache: 'npm'
41+
# - run: npm ci
42+
# - run: npm run test:coverage
43+
# - name: Code Coverage Report
44+
# uses: romeovs/lcov-reporter-action@v0.2.11
3245
tests:
3346
name: Unit tests
3447
runs-on: ubuntu-latest
@@ -46,4 +59,4 @@ jobs:
4659
node-version: ${{ matrix.node-version }}
4760
cache: 'npm'
4861
- run: npm ci
49-
- run: npm test
62+
- run: npm run test:coverage

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
/lib/
22
/node_modules/
3+
/.nyc_output/
4+
/coverage/

.nycrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"all": true,
3+
"extension": [".ts"],
4+
"include": ["src/**"]
5+
}

0 commit comments

Comments
 (0)