Skip to content

Commit 6af550f

Browse files
Added code coverage analysis
1 parent 1f6867a commit 6af550f

File tree

5 files changed

+918
-3
lines changed

5 files changed

+918
-3
lines changed

Diff for: .github/workflows/CI-CD.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,24 @@ jobs:
5151
- name: Run tests
5252
run: npm test
5353

54+
- name: Send code coverage results to Coveralls
55+
uses: coverallsapp/[email protected]
56+
with:
57+
github-token: ${{ secrets.GITHUB_TOKEN }}
58+
parallel: true
59+
60+
coverage:
61+
name: Code Coverage
62+
runs-on: ubuntu-latest
63+
timeout-minutes: 10
64+
needs: test
65+
steps:
66+
- name: Let Coveralls know that all tests have finished
67+
uses: coverallsapp/[email protected]
68+
with:
69+
github-token: ${{ secrets.GITHUB_TOKEN }}
70+
parallel-finished: true
71+
5472
deploy:
5573
name: Publish to NPM
5674
if: github.ref == 'refs/heads/master'

Diff for: .gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ pids
3636
node_modules
3737

3838
# Test output
39-
lib-cov
39+
/.nyc_output
4040
/coverage

Diff for: .nycrc.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# NYC config
2+
# https://github.com/istanbuljs/nyc#configuration-files
3+
4+
extension:
5+
- .js
6+
- .ts
7+
8+
reporter:
9+
- text
10+
- lcov

0 commit comments

Comments
 (0)