We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af31f74 commit 5e32148Copy full SHA for 5e32148
.github/workflows/test.yml
@@ -0,0 +1,35 @@
1
+name: Test
2
+on:
3
+ push:
4
+ branches:
5
+ - main
6
+ pull_request:
7
+ types: [opened, synchronize]
8
+
9
+jobs:
10
+ test_matrix:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ node_version: ["12", "14"]
15
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ - name: Use Node.js ${{ matrix.node_version }}
19
+ uses: actions/setup-node@v2
20
+ with:
21
+ node-version: ${{ matrix.node_version }}
22
+ - uses: actions/cache@v1
23
24
+ path: ~/.npm
25
+ key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26
+ restore-keys: |
27
+ ${{ runner.os }}-node-
28
+ - run: npm ci
29
+ - run: npm test
30
31
+ test:
32
33
+ needs: test_matrix
34
35
+ - run: echo ok
0 commit comments