Skip to content

Commit cce54b0

Browse files
committed
Add coverage to GitHub Workflow
1 parent ac3e9c6 commit cce54b0

File tree

4 files changed

+23
-367
lines changed

4 files changed

+23
-367
lines changed

.github/workflows/coverage.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: coverage
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v1
8+
- name: Use Node.js 10.x
9+
uses: actions/setup-node@v1
10+
with:
11+
node-version: 14.x
12+
- run: npm ci
13+
- run: npm run coverage
14+
- run: npm run coveralls
15+
- name: Upload results
16+
uses: coverallsapp/github-action@master
17+
with:
18+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/node.yml renamed to .github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: test
2-
on: [push]
2+
on: [push, pull_request]
33
jobs:
44
build:
55
runs-on: ubuntu-latest
@@ -13,6 +13,6 @@ jobs:
1313
with:
1414
node-version: ${{ matrix.node-version }}
1515
- run: npm ci
16-
- run: npm test
16+
- run: npm run lint && npm test
1717
env:
1818
CI: true

0 commit comments

Comments
 (0)