Skip to content

Commit 80179db

Browse files
committed
Add test and build actions
1 parent 8c20d9f commit 80179db

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/build.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: 'Test and Build'
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
test-and-build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- uses: actions/cache@v2
15+
with:
16+
path: ~/.npm
17+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
18+
restore-keys: |
19+
${{ runner.os }}-node-
20+
21+
- uses: actions/setup-node@v2
22+
with:
23+
node-version: '12'
24+
check-latest: true
25+
26+
- run: npm ci
27+
- run: npm run test:ci
28+
- run: npm run build

0 commit comments

Comments
 (0)