Skip to content

Commit eced446

Browse files
committed
fix(ci): add deno install step to all test jobs + regenerate lock file
Root cause: CI test.yml had no 'deno install --node-modules-dir' step. It relied on cache hits for node_modules. When the lock file hash changed (bumped from ^0.14.6 to ^0.14.8), cache missed and node_modules was empty, causing 'Could not find a matching package for npm:vite@8.0.10' errors. Fix: - Add 'deno install --node-modules-dir' step after cache restore in all 12 test jobs (typecheck, 8 test-*, build-www, test-e2e) - Regenerate deno.lock via 'deno install' to ensure consistency (previous lock was partially modified by sed, now properly resolved)
1 parent 039894e commit eced446

2 files changed

Lines changed: 35 additions & 12 deletions

File tree

.github/workflows/test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
with:
2121
path: node_modules
2222
key: ${{ runner.os }}-deno-${{ hashFiles('deno.lock') }}
23+
- name: Install dependencies
24+
run: deno install --node-modules-dir
2325
- name: Run type check
2426
run: deno task typecheck
2527

@@ -35,6 +37,8 @@ jobs:
3537
with:
3638
path: node_modules
3739
key: ${{ runner.os }}-deno-${{ hashFiles('deno.lock') }}
40+
- name: Install dependencies
41+
run: deno install --node-modules-dir
3842
- name: Run core tests
3943
run: deno test packages/core/__tests__/ --coverage --allow-read --allow-write --allow-env --allow-run --allow-ffi
4044

@@ -50,6 +54,8 @@ jobs:
5054
with:
5155
path: node_modules
5256
key: ${{ runner.os }}-deno-${{ hashFiles('deno.lock') }}
57+
- name: Install dependencies
58+
run: deno install --node-modules-dir
5359
- name: Run adapter-vite tests
5460
run: deno test packages/adapter-vite/__tests__/ --coverage --allow-read --allow-write --allow-env --allow-run --allow-ffi
5561

@@ -65,6 +71,8 @@ jobs:
6571
with:
6672
path: node_modules
6773
key: ${{ runner.os }}-deno-${{ hashFiles('deno.lock') }}
74+
- name: Install dependencies
75+
run: deno install --node-modules-dir
6876
- name: Run rpc tests
6977
run: deno test packages/rpc/__tests__/ --coverage --allow-read --allow-write
7078

@@ -80,6 +88,8 @@ jobs:
8088
with:
8189
path: node_modules
8290
key: ${{ runner.os }}-deno-${{ hashFiles('deno.lock') }}
91+
- name: Install dependencies
92+
run: deno install --node-modules-dir
8393
- name: Run ui tests
8494
run: deno test packages/ui/__tests__/ --coverage --allow-read --allow-write --allow-env
8595

@@ -95,6 +105,8 @@ jobs:
95105
with:
96106
path: node_modules
97107
key: ${{ runner.os }}-deno-${{ hashFiles('deno.lock') }}
108+
- name: Install dependencies
109+
run: deno install --node-modules-dir
98110
- name: Run create tests
99111
run: deno test packages/create/__tests__/ --coverage --allow-read --allow-write --allow-env --allow-run --allow-ffi
100112

@@ -110,6 +122,8 @@ jobs:
110122
with:
111123
path: node_modules
112124
key: ${{ runner.os }}-deno-${{ hashFiles('deno.lock') }}
125+
- name: Install dependencies
126+
run: deno install --node-modules-dir
113127
- name: Run i18n tests
114128
run: deno test packages/i18n/__tests__/ --coverage --allow-read --allow-write --allow-env
115129

@@ -125,6 +139,8 @@ jobs:
125139
with:
126140
path: node_modules
127141
key: ${{ runner.os }}-deno-${{ hashFiles('deno.lock') }}
142+
- name: Install dependencies
143+
run: deno install --node-modules-dir
128144
- name: Run content tests
129145
run: deno test packages/content/__tests__/ --coverage --allow-read --allow-write --allow-env
130146

@@ -140,6 +156,8 @@ jobs:
140156
with:
141157
path: node_modules
142158
key: ${{ runner.os }}-deno-${{ hashFiles('deno.lock') }}
159+
- name: Install dependencies
160+
run: deno install --node-modules-dir
143161
- name: Run adapter-lit tests
144162
run: deno test packages/adapter-lit/__tests__/ --coverage --allow-read --allow-write --allow-env
145163

@@ -155,6 +173,8 @@ jobs:
155173
with:
156174
path: node_modules
157175
key: ${{ runner.os }}-deno-${{ hashFiles('deno.lock') }}
176+
- name: Install dependencies
177+
run: deno install --node-modules-dir
158178
- name: Build www site
159179
run: deno task build:docs
160180

@@ -170,6 +190,8 @@ jobs:
170190
with:
171191
path: node_modules
172192
key: ${{ runner.os }}-deno-${{ hashFiles('deno.lock') }}
193+
- name: Install dependencies
194+
run: deno install --node-modules-dir
173195
- name: Install Playwright Chromium
174196
run: npx -y playwright install chromium --with-deps
175197
- name: Build www site

deno.lock

Lines changed: 13 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)