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 2efc586 commit 9781305Copy full SHA for 9781305
.github/workflows/node.js.yml
@@ -0,0 +1,29 @@
1
+# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
2
+
3
+name: Node.js CI
4
5
+on:
6
+ push:
7
+ branches: [ "main" ]
8
+ pull_request:
9
10
11
+jobs:
12
+ build:
13
14
+ runs-on: ubuntu-latest
15
16
+ strategy:
17
+ matrix:
18
+ # Old infra requires Node 10
19
+ node-version: [10.x, 18.x]
20
21
+ steps:
22
+ - uses: actions/checkout@v3
23
+ - name: Use Node.js ${{ matrix.node-version }}
24
+ uses: actions/setup-node@v3
25
+ with:
26
+ node-version: ${{ matrix.node-version }}
27
+ cache: 'npm'
28
+ - run: npm ci
29
+ - run: npm test
0 commit comments