Skip to content

Commit c192c06

Browse files
committed
ci(code-check): upload coverage report to coveralls
1 parent cb0533d commit c192c06

File tree

3 files changed

+73
-1
lines changed

3 files changed

+73
-1
lines changed

.github/workflows/code-check.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,17 @@ jobs:
114114
- name: Unit Test
115115
run: pnpm test
116116

117+
- name: Coverage
118+
run: pnpm coverage
119+
120+
- name: Upload Report to Coveralls
121+
uses: coverallsapp/github-action@v2.3.0
122+
with:
123+
github-token: ${{ secrets.GITHUB_TOKEN }}
124+
flag-name: Unit Test
125+
parallel: true
126+
127+
117128
build:
118129
needs: setup
119130
runs-on: ubuntu-latest
@@ -139,4 +150,14 @@ jobs:
139150
key: node_modules-${{ hashFiles('**/pnpm-lock.yaml') }}
140151

141152
- name: Build
142-
run: pnpm build
153+
run: pnpm build
154+
155+
finish:
156+
needs: unit-test
157+
runs-on: ubuntu-latest
158+
steps:
159+
- name: Coveralls Finished
160+
uses: coverallsapp/github-action@v2
161+
with:
162+
parallel-finished: true
163+
carryforward: "run-1,run-2"

0 commit comments

Comments
 (0)