Skip to content

Commit 5b6af14

Browse files
committed
added test and build action
1 parent 1794dfd commit 5b6af14

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Test and Build
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
test-and-build:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
node-version: [16.x, 14.x]
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
with:
16+
ref: ${{ github.event.pull_request.head.sha }}
17+
fetch-depth: 0
18+
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
24+
- name: Install dependencies
25+
run: npm install
26+
27+
- name: Run tests
28+
run: npm run test
29+
30+
- name: Build
31+
run: npm run build

0 commit comments

Comments
 (0)