Skip to content

Commit a6d3574

Browse files
Run tests with code coverage and send the results to Coveralls
1 parent 61e2c86 commit a6d3574

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/CI-CD.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
44
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/contexts-and-expression-syntax-for-github-actions
55

6-
name: CI-CD
6+
name: CI/CD
77

88
on:
99
push:
@@ -43,8 +43,14 @@ jobs:
4343
- name: Install dependencies
4444
run: npm ci
4545

46+
- name: Run linter
47+
run: npm run lint
48+
4649
- name: Run tests
47-
run: npm test
50+
run: npm run coverage
51+
52+
- name: Send code coverage results to Coveralls
53+
run: cat ./coverage/lcov.info | coveralls
4854

4955
deploy:
5056
name: Publish to NPM

0 commit comments

Comments
 (0)