Skip to content

Commit 2ba95a3

Browse files
committed
updated coverage code
1 parent 61b5b49 commit 2ba95a3

File tree

1 file changed

+13
-28
lines changed

1 file changed

+13
-28
lines changed

.github/workflows/code-coverage.yml

Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,23 @@
1-
name: Coveralls GitHub Action
1+
on: ["push", "pull_request"]
2+
3+
name: Test Coveralls
24

35
jobs:
4-
test:
6+
build:
7+
name: Build
58
runs-on: ubuntu-latest
6-
strategy:
7-
matrix:
8-
test_number:
9-
- 1
10-
- 2
119
steps:
12-
- uses: actions/checkout@3
10+
- uses: actions/checkout@v1
11+
1312
- name: Use Node.js 16.x
14-
uses: actions/setup-node@3
13+
uses: actions/setup-node@v3
1514
with:
1615
node-version: 16.x
1716

18-
- name: npm install
19-
run: npm install
20-
21-
- name: Test ${{ matrix.test_number }}
22-
run: make test-coverage-${{ matrix.test_number }}
23-
- name: Coveralls Parallel
24-
uses: coverallsapp/github-action@v2
25-
with:
26-
flag-name: run-${{ join(matrix.*, '-') }}
27-
parallel: true
17+
- name: npm install, make test-coverage
18+
run: |
19+
npm install
20+
make test-coverage
2821
29-
finish:
30-
needs: test
31-
if: ${{ always() }}
32-
runs-on: ubuntu-latest
33-
steps:
34-
- name: Coveralls Finished
22+
- name: Coveralls
3523
uses: coverallsapp/github-action@v2
36-
with:
37-
parallel-finished: true
38-
carryforward: "run-1,run-2"

0 commit comments

Comments
 (0)