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.
2 parents bf5fcc6 + 83aa8df commit 4c41379Copy full SHA for 4c41379
.github/workflows/ci.yml
@@ -0,0 +1,35 @@
1
+name: Node CI
2
+
3
+on: [push]
4
5
+jobs:
6
+ test:
7
+ strategy:
8
+ matrix:
9
+ node: ['12.x', '10.x', '8.x']
10
11
+ runs-on: ubuntu-latest
12
13
+ steps:
14
+ # Setup the local repo
15
+ - uses: actions/checkout@v1
16
17
+ # Setup Node.js with the correct version
18
+ - name: Use Node.js ${{ matrix.node }}
19
+ uses: actions/setup-node@v1
20
+ with:
21
+ node-version: ${{ matrix.node }}
22
23
+ # Cache dependencies
24
+ - uses: actions/cache@v1
25
26
+ path: ~/.npm
27
+ key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
28
+ restore-keys: |
29
+ ${{ runner.os }}-node-
30
31
+ # Install dependencies
32
+ - run: npm ci
33
34
+ # Run tests
35
+ - run: npm test
0 commit comments