Skip to content

Commit 28c9299

Browse files
author
Agnes Lin
committed
ci: test
Signed-off-by: Agnes Lin <[email protected]>
1 parent 10a211a commit 28c9299

File tree

2 files changed

+18
-22
lines changed

2 files changed

+18
-22
lines changed

.github/workflows/continous-integration.yaml

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,30 +32,26 @@ jobs:
3232

3333

3434
- run: npm install
35-
- run: npm run coverage
35+
- run: npm test
3636
env:
3737
CI: true
38-
# - run: npm run coverage
39-
coverage:
40-
name: Coveralls
41-
runs-on: ubuntu-latest
42-
trategy:
43-
matrix:
44-
node-version: [14]
45-
46-
steps:
47-
- uses: coverallsapp/github-action@master
48-
env:
49-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
50-
with:
51-
github-token: ${{ secrets.GITHUB_TOKEN }}
38+
- run: npm run coverage
5239

40+
- name: Coveralls
41+
uses: coverallsapp/github-action@master
42+
with:
43+
github-token: ${{ secrets.GITHUB_TOKEN }}
44+
flag-name: ${{matrix.os}}-node-${{ matrix.node }}
45+
parallel: true
5346

47+
finish:
48+
needs: test
49+
runs-on: ubuntu-latest
50+
steps:
51+
- name: Coveralls Finished
52+
uses: coverallsapp/github-action@master
53+
with:
54+
github-token: ${{ secrets.GITHUB_TOKEN }}
55+
parallel-finished: true
5456

55-
# uses: coverallsapp/github-action@master
56-
# env:
57-
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
58-
# COVERALLS_GIT_BRANCH: ${{ github.ref }}
59-
# with:
60-
# github-token: ${{ secrets.GITHUB_TOKEN }}
6157

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"author": "IBM Corp.",
99
"main": "index.js",
1010
"scripts": {
11-
"coverage": "npm test && nyc report --reporter=text-lcov --reporter=lcov | coveralls",
11+
"coverage": "nyc report --reporter=text-lcov --reporter=lcov && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
1212
"benchmarks": "make benchmarks",
1313
"leak-detection": "make leak-detection",
1414
"test": "nyc mocha test/*.test.js node_modules/juggler-v4/test.js",

0 commit comments

Comments
 (0)