Skip to content

Commit bed4429

Browse files
committed
add: create new github action - coverage
1 parent df457a7 commit bed4429

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/coverage.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: '🦊 Coverage'
2+
3+
on:
4+
push:
5+
branches: [master, dev]
6+
pull_request:
7+
branches: [master,dev]
8+
env:
9+
CI: true
10+
11+
jobs:
12+
test:
13+
name: Node ${{ matrix.node }} on ${{ matrix.os }}
14+
runs-on: ${{ matrix.os }}
15+
16+
steps:
17+
- name: Clone repository
18+
uses: actions/checkout@v2
19+
20+
- name: Set Node.js version
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: '14'
24+
25+
- name: Install npm dependencies
26+
run: npm install
27+
28+
- name: Run lint
29+
run: npm run lint
30+
31+
- name: Run tests
32+
run: npm run test:coveralls
33+
34+
- name: Coveralls
35+
uses: coverallsapp/github-action@master
36+
with:
37+
github-token: ${{secrets.GITHUB_TOKEN}}
38+
parallel: true
39+
40+
finish:
41+
needs: test
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: Coveralls Finished
45+
uses: coverallsapp/github-action@master
46+
with:
47+
github-token: ${{secrets.GITHUB_TOKEN}}
48+
parallel-finished: true

0 commit comments

Comments
 (0)