Skip to content

Commit 09be3b6

Browse files
chore(ci): publish coverage only on master
1 parent 7a6657d commit 09be3b6

File tree

2 files changed

+25
-22
lines changed

2 files changed

+25
-22
lines changed

.github/workflows/coverage.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Coverage
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
coverage:
9+
needs: [test]
10+
name: coverage
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@master
14+
- uses: actions/setup-node@master
15+
with:
16+
node-version: 16.x
17+
- run: npm config set timeout 600000
18+
- run: npm install
19+
- run: npm run build
20+
- uses: paambaati/[email protected]
21+
env:
22+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
23+
with:
24+
coverageCommand: npm run coverage
25+
debug: true

.github/workflows/test.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
12-
environment: PR CI (Test and Coverage)
1312
if: ${{ !contains(github.event.head_commit.message, 'skip ci') }}
1413
strategy:
1514
matrix:
@@ -28,7 +27,6 @@ jobs:
2827

2928
lint:
3029
runs-on: ubuntu-latest
31-
environment: PR CI (Test and Coverage)
3230
name: test/lint
3331
steps:
3432
- uses: actions/checkout@v2
@@ -41,23 +39,3 @@ jobs:
4139
- run: npm config set timeout 600000
4240
- run: npm install
4341
- run: npm run lint
44-
45-
coverage:
46-
needs: [test]
47-
name: coverage
48-
runs-on: ubuntu-latest
49-
environment: PR CI (Test and Coverage)
50-
steps:
51-
- uses: actions/checkout@master
52-
- uses: actions/setup-node@master
53-
with:
54-
node-version: 16.x
55-
- run: npm config set timeout 600000
56-
- run: npm install
57-
- run: npm run build
58-
- uses: paambaati/[email protected]
59-
env:
60-
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
61-
with:
62-
coverageCommand: npm run coverage
63-
debug: true

0 commit comments

Comments
 (0)