Skip to content

Commit dc7e80e

Browse files
authored
ci: update node version, use setup-node, update checkout version (#1646)
1 parent 6a4c8c4 commit dc7e80e

1 file changed

Lines changed: 6 additions & 19 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,35 +17,22 @@ jobs:
1717
github.event.pull_request.draft != true &&
1818
(github.event_name == 'pull_request_review' && github.event.review.state == 'approved') ||
1919
github.event_name != 'pull_request_review'
20-
strategy:
21-
matrix:
22-
node-version:
23-
- "16"
2420
2521
steps:
26-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v4
2723

28-
- name: Install Node.js ${{ matrix.node-version }}
29-
shell: bash -l {0}
30-
run: |
31-
nvm install --default ${{ matrix.node-version }}
32-
dirname "$(npm which)" >> "$GITHUB_PATH"
24+
- name: Set up Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 20
3328

3429
- name: Install Node.js dependencies
3530
run: npm install
3631

37-
- name: List environment
38-
id: list_env
39-
shell: bash
40-
run: |
41-
echo "node@$(node -v)"
42-
echo "npm@$(npm -v)"
43-
npm -s ls
44-
4532
- name: Run tests
4633
shell: bash
4734
run: npm test
48-
35+
4936
- name: Check Docker support
5037
shell: bash
5138
run: |

0 commit comments

Comments
 (0)