Skip to content

Commit 57fec2c

Browse files
Update node version for GitHub Actions
1 parent ae3354e commit 57fec2c

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/node.js.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,26 @@ name: Tests
55

66
on:
77
push:
8-
branches: [ "main" ]
8+
branches: ["main"]
99
pull_request:
10-
branches: [ "main" ]
10+
branches: ["main"]
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
1615

1716
strategy:
1817
matrix:
19-
node-version: [16.x]
18+
node-version: [18.x]
2019
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2120

2221
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-
cache: 'npm'
29-
- run: echo 'export const apiIPToken = ${{ secrets.APIIPTOKEN }}'> src/libs/holdAPI.js
30-
- run: npm i
31-
- run: npm test
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: echo 'export const apiIPToken = ${{ secrets.APIIPTOKEN }}'> src/libs/holdAPI.js
29+
- run: npm i
30+
- run: npm test

0 commit comments

Comments
 (0)