Skip to content

Commit 7afb4f5

Browse files
feat: do not let "Report to Coveralls" job step to fail checks if "Run tests" succeds (#75)
(cherry picked from commit ca36a4a)
1 parent cb944a8 commit 7afb4f5

File tree

1 file changed

+28
-27
lines changed

1 file changed

+28
-27
lines changed

.github/workflows/tests-ci.yml

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,36 @@
1-
on: [ "push", "pull_request" ]
1+
on: ["push", "pull_request"]
22

33
name: Unit Tests
44

55
jobs:
6-
test:
7-
name: Run Unit Tests
8-
runs-on: ubuntu-latest
9-
permissions:
10-
contents: read
11-
pull-requests: write
12-
steps:
6+
test:
7+
name: Run Unit Tests
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
steps:
13+
- uses: actions/checkout@v4
1314

14-
- uses: actions/checkout@v4
15+
- name: Use Node.js 20.x
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 20.x
1519

16-
- name: Use Node.js 20.x
17-
uses: actions/setup-node@v3
18-
with:
19-
node-version: 20.x
20+
- name: Install dependencies
21+
run: |
22+
npm install -g pnpm@latest
23+
pnpm i
2024
21-
- name: Install dependencies
22-
run: |
23-
npm install -g pnpm@latest
24-
pnpm i
25+
- name: Run tests
26+
run: |
27+
pnpm test:coverage:ci
2528
26-
- name: Run tests
27-
run: |
28-
pnpm test:coverage:ci
29-
30-
- name: Report to Coveralls
31-
uses: coverallsapp/github-action@v2
32-
with:
33-
github-token: ${{ secrets.COVERALLS_REPO_TOKEN }}
34-
file: coverage/lcov.info
35-
allow-empty: true
29+
- name: Report to Coveralls
30+
uses: coverallsapp/github-action@v2
31+
if: success()
32+
continue-on-error: true
33+
with:
34+
github-token: ${{ secrets.COVERALLS_REPO_TOKEN }}
35+
file: coverage/lcov.info
36+
allow-empty: true

0 commit comments

Comments
 (0)