Skip to content

Commit 3160f44

Browse files
committed
Update node.js.yml
1 parent 0c03257 commit 3160f44

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

.github/workflows/node.js.yml

+19-20
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,27 @@
44
name: Node.js CI
55

66
on:
7-
push:
8-
branches: [ "master" ]
9-
pull_request:
10-
branches: [ "master" ]
7+
push:
8+
branches: ["master"]
9+
pull_request:
10+
branches: ["master"]
1111

1212
jobs:
13-
build:
13+
build:
14+
runs-on: ubuntu-latest
1415

15-
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
node-version: [20.x]
19+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
1620

17-
strategy:
18-
matrix:
19-
node-version: [18.x]
20-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
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 }}
2127

22-
steps:
23-
- uses: actions/checkout@v3
24-
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v3
26-
with:
27-
node-version: ${{ matrix.node-version }}
28-
29-
- run: npm i --force
30-
- run: npm run build
31-
- run: npm test
28+
- run: npm i --force
29+
- run: npm run build
30+
- run: npm test

0 commit comments

Comments
 (0)