We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 463be2d commit d403714Copy full SHA for d403714
1 file changed
.github/workflows/node.js.yml
@@ -1,15 +1,29 @@
1
-name: Redirect
+name: Node.js CI
2
3
on:
4
push:
5
- branches:
6
- - master
+ branches: [ "main" ]
+ pull_request:
7
8
9
jobs:
- redirect:
10
+ build:
11
+
12
runs-on: ubuntu-latest
13
14
+ strategy:
15
+ matrix:
16
+ node-version: [14.x, 16.x, 18.x]
17
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
18
19
steps:
- - uses: actions/checkout@v2
- - uses: ./.github/actions/redirect
- with:
- port: 8080
20
+ - uses: actions/checkout@v3
21
+ - uses: ./actions/redirect
22
+ - name: Use Node.js ${{ matrix.node-version }}
23
+ uses: actions/setup-node@v3
24
+ with:
25
+ node-version: ${{ matrix.node-version }}
26
+ cache: 'npm'
27
+ - run: npm ci
28
+ - run: npm run build --if-present
29
+ - run: npm test
0 commit comments