Skip to content

Commit 5893583

Browse files
committed
enable github action test
1 parent 3c4e72f commit 5893583

File tree

4 files changed

+7613
-2
lines changed

4 files changed

+7613
-2
lines changed

.github/workflows/test.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Tests
2+
'on':
3+
push:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
10+
jobs:
11+
test:
12+
name: 'Node.js v${{ matrix.node }}'
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
node:
17+
- 12
18+
- 14
19+
- 16
20+
steps:
21+
- uses: actions/setup-node@v1
22+
with:
23+
node-version: '${{ matrix.node }}'
24+
- uses: actions/checkout@v2
25+
- name: 'Cache node_modules'
26+
uses: actions/cache@v2
27+
with:
28+
path: ~/.npm
29+
key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
30+
restore-keys: |
31+
${{ runner.os }}-node-v${{ matrix.node }}-
32+
- name: Install Dependencies
33+
run: npm install
34+
- name: Run All Node.js Tests
35+
run: npm run test

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,3 @@ node_modules
2828

2929
# TestingBot specific files
3030
*.jar
31-
package-lock.json

0 commit comments

Comments
 (0)