@@ -149,10 +149,38 @@ jobs:
149
149
150
150
- name : Setup node.js
151
151
if : ${{ !contains(matrix.shell, 'wsl') }}
152
- uses : actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
152
+ uses : actions/setup-node@v4.4.0
153
153
with :
154
154
node-version : 20
155
- cache : yarn
155
+ # yarn cache is broken due https://github.com/actions/setup-node/issues/531
156
+ # cache: yarn
157
+
158
+ - name : Corepack enable
159
+ if : ${{ !contains(matrix.shell, 'wsl') }}
160
+ run : corepack enable
161
+
162
+ - name : Enable caching
163
+ uses : actions/cache@v4
164
+ with :
165
+ path : |
166
+ .vscode-test
167
+ .yarn/cache
168
+ out/ext
169
+ out/test-resources
170
+ out/test-resources-oldest
171
+ ~/.cache/pip
172
+ ~/.cache/yarn
173
+ ~/.cache/pre-commit/
174
+ key : ${{ runner.os }}-${{ matrix.task-name }}-${{ hashFiles('package.json', 'yarn.lock', '.config/requirements.txt', 'tools/*.*') }}
175
+
176
+ # - name: Enable caching for podman-machine
177
+ # if: "contains(matrix.os, 'macos')"
178
+ # uses: actions/cache@v4
179
+ # with:
180
+ # path: |
181
+ # ~/.local/share/containers
182
+ # ~/.config/containers
183
+ # key: ${{ runner.os }}-${{ matrix.task-name }}-${{ hashFiles('package.json', 'yarn.lock', '.config/requirements.txt', '**/Taskfile.yml', 'tools/*.*') }}
156
184
157
185
- name : Setup task
158
186
if : ${{ !contains(matrix.shell, 'wsl') }}
@@ -223,29 +251,6 @@ jobs:
223
251
# Ensure NODE_OPTIONS config on CI is identical with the one in .env
224
252
[[ "${NODE_OPTIONS:-}" == "$(direnv exec . printenv NODE_OPTIONS)" ]] || { echo "NODE_OPTIONS mismatch between .env and ci.yaml"; exit 97; }
225
253
226
- - name : Enable caching
227
- uses : actions/cache@v4
228
- with :
229
- path : |
230
- .vscode-test
231
- .yarn/cache
232
- out/ext
233
- out/test-resources
234
- out/test-resources-oldest
235
- ~/.cache/pip
236
- ~/.cache/yarn
237
- ~/.cache/pre-commit/
238
- key : ${{ runner.os }}-${{ matrix.task-name }}-${{ hashFiles('package.json', 'yarn.lock', '.config/requirements.txt', 'tools/*.*') }}
239
-
240
- # - name: Enable caching for podman-machine
241
- # if: "contains(matrix.os, 'macos')"
242
- # uses: actions/cache@v4
243
- # with:
244
- # path: |
245
- # ~/.local/share/containers
246
- # ~/.config/containers
247
- # key: ${{ runner.os }}-${{ matrix.task-name }}-${{ hashFiles('package.json', 'yarn.lock', '.config/requirements.txt', '**/Taskfile.yml', 'tools/*.*') }}
248
-
249
254
- name : Install dependencies
250
255
uses : backstage/actions/yarn-install@b3c1841fd69e1658ac631afafd0fb140a2309024 # v0.6.17
251
256
with :
0 commit comments