@@ -130,27 +130,32 @@ jobs:
130
130
run : choco upgrade llvm
131
131
- name : Setup headless display
132
132
uses : pyvista/setup-headless-display-action@v1
133
- - uses : ./.github/actions/install-nodejs
133
+ - uses : actions/setup-node@v4
134
+ with :
135
+ node-version : 20
134
136
id : node-install
137
+
138
+ with :
139
+ version : 9.11.0
135
140
- uses : ./.github/actions/setup-rust
136
141
with :
137
142
key : x-napi-v2-${{ steps.node-install.outputs.node-version }} # the cache key consists of a manually bumpable version and the node version, as the cached rustc artifacts contain linking information where to find node.lib, which is in a versioned directory.
138
- - name : Run npm install
139
- working-directory : ./ api/node
140
- run : npm install --ignore-scripts
143
+ - name : Run pnpm install
144
+ working-directory : api/node
145
+ run : pnpm install --frozen-lockfile --ignore-scripts
141
146
- name : Build node plugin in debug
142
- run : npm run build:testing
143
- working-directory : ./ api/node
147
+ run : pnpm build:testing
148
+ working-directory : api/node
144
149
- name : Lint node api
145
- working-directory : ./ api/node
146
- run : npm run lint
150
+ working-directory : api/node
151
+ run : pnpm lint
147
152
- name : Check code formatting
148
153
if : ${{ runner.os != 'Windows' }}
149
- working-directory : ./ api/node
150
- run : npm run format
154
+ working-directory : api/node
155
+ run : pnpm format
151
156
- name : Run node tests
152
- working-directory : ./ api/node
153
- run : npm test
157
+ working-directory : api/node
158
+ run : pnpm test
154
159
- name : Run test-driver-nodejs
155
160
# Release is only applied to the harness that drives the node.js invocations, but needed
156
161
# to avoid crashing on Windows with what looks like an out of stack exception.
@@ -190,7 +195,7 @@ jobs:
190
195
python-version : " 3.10"
191
196
-
uses :
fjwillemsen/[email protected]
192
197
- name : Run python tests
193
- working-directory : ./ api/python
198
+ working-directory : api/python
194
199
run : nox
195
200
196
201
cpp_test_driver :
@@ -329,37 +334,40 @@ jobs:
329
334
330
335
steps :
331
336
- uses : actions/checkout@v4
337
+
338
+ with :
339
+ version : 9.11.0
332
340
- uses : Swatinem/rust-cache@v2
333
341
with :
334
342
key : " vsce_1" # increment this to bust the cache if needed
335
343
- uses : ./.github/actions/install-linux-dependencies
336
344
- uses : actions/setup-node@v4
337
345
with :
338
- node-version : 18
346
+ node-version : 20
339
347
- name : Install wasm-pack
340
348
run : curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
341
349
- name : Fake slint-lsp build
342
350
run : |
343
351
mkdir -p target/debug
344
352
echo 1 > target/debug/slint-lsp
345
- - name : Run npm install
346
- working-directory : ./ editors/vscode
347
- run : npm clean- install
353
+ - name : Run pnpm install
354
+ working-directory : editors/vscode
355
+ run : pnpm install --frozen-lockfile --ignore-scripts
348
356
- name : Lint vscode project
349
- working-directory : ./ editors/vscode
350
- run : npm run lint
357
+ working-directory : editors/vscode
358
+ run : pnpm lint
351
359
- name : Check code formatting
352
- working-directory : ./ editors/vscode
353
- run : npm run format
360
+ working-directory : editors/vscode
361
+ run : pnpm format
354
362
- name : vscode prebuild
355
- working-directory : ./ editors/vscode
356
- run : npm run vscode:prepublish
363
+ working-directory : editors/vscode
364
+ run : pnpm vscode:prepublish
357
365
- name : Build VS Code extension
358
- working-directory : ./ editors/vscode
359
- run : npm run local-package
366
+ working-directory : editors/vscode
367
+ run : pnpm local-package
360
368
- name : Typescript syntax check # has to run after the build as it depends on the wasm
361
- working-directory : ./ editors/vscode
362
- run : npm run syntax_check
369
+ working-directory : editors/vscode
370
+ run : pnpm type-check
363
371
364
372
# test to compile the mcu backend for the arm target (no_std)
365
373
mcu :
0 commit comments