Skip to content

Commit 92d3422

Browse files
committed
test: code coverage
1 parent c61be3c commit 92d3422

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Code Coverage Test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v2
14+
with:
15+
node-version: '18.x'
16+
- run: npm install
17+
- run: npm test -- --coverage
18+
- run: npm install coveralls --save-dev
19+
- run: cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
20+
env:
21+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_POSTGRES_TOKEN }}

0 commit comments

Comments
 (0)