Skip to content

Commit e98ec31

Browse files
committed
ci: Run tests and audit packages using GitHub Actions
1 parent 8194d4c commit e98ec31

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/pipeline.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Pipeline
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
node-version: [12.x]
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Setup Node.js ${{ matrix.node-version }}
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: ${{ matrix.node-version }}
17+
- run: npm ci
18+
- run: npm run lint
19+
- run: npm run coverage
20+
audit:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
node-version: [12.x]
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Setup Node.js ${{ matrix.node-version }}
28+
uses: actions/setup-node@v1
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
- run: npm ci
32+
- run: npm audit

0 commit comments

Comments
 (0)