Skip to content

Commit b2d0463

Browse files
committed
ci: update workflows
1 parent 5416a36 commit b2d0463

2 files changed

Lines changed: 41 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x]
14+
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x, 24.x]
1515
steps:
1616
- uses: actions/checkout@v4
1717
with:
@@ -36,12 +36,40 @@ jobs:
3636
run: npm install
3737
- name: Run tests
3838
run: npm test
39-
tests-macos:
39+
tests-macos-intel:
40+
runs-on: macos-15-intel
41+
strategy:
42+
fail-fast: false
43+
matrix:
44+
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x, 24.x]
45+
env:
46+
PIP_DISABLE_PIP_VERSION_CHECK: 1
47+
steps:
48+
- uses: actions/checkout@v4
49+
with:
50+
persist-credentials: false
51+
- name: Use Node.js ${{ matrix.node-version }}
52+
uses: actions/setup-node@v4
53+
with:
54+
node-version: ${{ matrix.node-version }}
55+
- name: Install Python 3.10
56+
uses: actions/setup-python@v5
57+
with:
58+
python-version: '3.10'
59+
- name: Check Node.js version
60+
run: node -pe process.versions
61+
- name: Check npm version
62+
run: npm -v
63+
- name: Install module
64+
run: npm install
65+
- name: Run tests
66+
run: npm test
67+
tests-macos-arm:
4068
runs-on: macos-latest
4169
strategy:
4270
fail-fast: false
4371
matrix:
44-
node-version: [16.x, 18.x, 20.x, 22.x]
72+
node-version: [16.x, 18.x, 20.x, 22.x, 24.x]
4573
env:
4674
PIP_DISABLE_PIP_VERSION_CHECK: 1
4775
steps:
@@ -65,12 +93,18 @@ jobs:
6593
- name: Run tests
6694
run: npm test
6795
tests-windows:
68-
runs-on: windows-2019
96+
runs-on: windows-2022
6997
strategy:
7098
fail-fast: false
7199
matrix:
72-
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x]
100+
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x, 24.x]
73101
steps:
102+
- name: Install VS2019 (node <16.x)
103+
if: ${{ contains(fromJSON('["10.x", "12.x", "14.x"]'), matrix.node-version) }}
104+
run: choco install visualstudio2019buildtools
105+
- name: Install VS2019 C++ (node<16.x)
106+
if: ${{ contains(fromJSON('["10.x", "12.x", "14.x"]'), matrix.node-version) }}
107+
run: choco install visualstudio2019-workload-vctools
74108
- uses: actions/checkout@v4
75109
with:
76110
persist-credentials: false

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches: [ master ]
77

88
env:
9-
NODE_VERSION: 20.x
9+
NODE_VERSION: 22.x
1010

1111
jobs:
1212
lint-js:
@@ -22,6 +22,6 @@ jobs:
2222
- name: Check Node.js version
2323
run: node -pe process.versions
2424
- name: Install ESLint + ESLint configs/plugins
25-
run: npm install
25+
run: npm install --omit=prod --include=dev --ignore-scripts
2626
- name: Lint files
2727
run: npm run lint

0 commit comments

Comments
 (0)