Skip to content

Commit dceeae8

Browse files
chore(ci): update Node.js versions and actions in workflow
- Updated Node.js versions to 18, 20, and 22 (active and current releases) - Upgraded actions/checkout to v4 - Upgraded actions/setup-node to v4 - Scoped pull_request trigger with specific event types
1 parent e27f3b7 commit dceeae8

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,35 @@
11
name: CI
2+
23
on:
34
push:
45
pull_request:
56
branches:
67
- master
78
- develop
9+
types: [opened, synchronize, reopened]
810
workflow_dispatch:
11+
912
jobs:
10-
job:
13+
build:
1114
runs-on: ${{ matrix.os }}
1215
strategy:
1316
matrix:
1417
os: [ubuntu-latest, macos-latest, windows-latest]
15-
node: [12, 14]
18+
node: [18, 20, 22]
1619
steps:
17-
- uses: actions/checkout@v2
18-
- name: Setup node
19-
uses: actions/setup-node@v2
20+
- uses: actions/checkout@v4
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
2024
with:
2125
node-version: ${{ matrix.node }}
22-
cache: 'npm'
23-
- name: Install packages
26+
cache: npm
27+
28+
- name: Install dependencies
2429
run: npm ci
30+
2531
- name: Build binaries
2632
run: npm run build
33+
2734
- name: Run tests
28-
run: npm run test
35+
run: npm run test

0 commit comments

Comments
 (0)