Skip to content

Commit d1b6793

Browse files
Switched from the Coveralls CLI command to the Coveralls GitHub Action
1 parent 606b854 commit d1b6793

File tree

4 files changed

+18
-346
lines changed

4 files changed

+18
-346
lines changed

.github/workflows/CI-CD.yaml

Lines changed: 17 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:
@@ -50,7 +50,22 @@ jobs:
5050
run: npm run coverage
5151

5252
- name: Send code coverage results to Coveralls
53-
run: cat ./coverage/lcov.info | node_modules/.bin/coveralls
53+
uses: coverallsapp/github-action@v1.0.1
54+
with:
55+
github-token: ${{ secrets.GITHUB_TOKEN }}
56+
parallel: true
57+
58+
coverage:
59+
name: Code Coverage
60+
runs-on: ubuntu-latest
61+
timeout-minutes: 10
62+
needs: test
63+
steps:
64+
- name: Let Coveralls know that all tests have finished
65+
uses: coverallsapp/github-action@v1.0.1
66+
with:
67+
github-token: ${{ secrets.GITHUB_TOKEN }}
68+
parallel-finished: true
5469

5570
deploy:
5671
name: Publish to NPM

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ NPM Publish GitHub Action
33
### Fast, easy publishing to NPM
44

55
![Cross-Platform Compatibility](https://jstools.dev/img/badges/os-badges.svg)
6-
![Build Status](https://github.com/JS-DevTools/npm-publish/workflows/CI/CD/badge.svg)
6+
![Build Status](https://github.com/JS-DevTools/npm-publish/workflows/CI-CD/badge.svg)
77

88
[![Coverage Status](https://coveralls.io/repos/github/JS-DevTools/npm-publish/badge.svg?branch=master)](https://coveralls.io/github/JS-DevTools/npm-publish)
99
[![Dependencies](https://david-dm.org/JS-DevTools/npm-publish/status.svg)](https://david-dm.org/JS-DevTools/npm-publish)

0 commit comments

Comments
 (0)