Skip to content

Commit 9521bcf

Browse files
committed
fix: always run CLI build in CI test jobs
The CI workflow was using `lookup-only: true` for cache restore, which only checks if the cache exists but doesn't actually restore files. This caused test jobs to skip the build step when cache existed, but the build artifacts weren't actually present on disk. Remove `lookup-only` and always run the build step. The build script already has its own caching logic and will skip unnecessary work.
1 parent 2809240 commit 9521bcf

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,8 @@ jobs:
108108
key: cli-build-${{ runner.os }}-${{ steps.cli-cache-key.outputs.hash }}
109109
restore-keys: |
110110
cli-build-${{ runner.os }}-
111-
lookup-only: true
112111
113112
- name: Build CLI
114-
if: steps.cli-build-cache.outputs.cache-hit != 'true'
115113
working-directory: packages/cli
116114
run: pnpm run build
117115

@@ -155,10 +153,8 @@ jobs:
155153
key: cli-build-${{ runner.os }}-${{ steps.cli-cache-key.outputs.hash }}
156154
restore-keys: |
157155
cli-build-${{ runner.os }}-
158-
lookup-only: true
159156
160157
- name: Build CLI
161-
if: steps.cli-build-cache.outputs.cache-hit != 'true'
162158
working-directory: packages/cli
163159
run: pnpm run build
164160

@@ -315,10 +311,8 @@ jobs:
315311
key: cli-build-${{ runner.os }}-${{ steps.cli-cache-key.outputs.hash }}
316312
restore-keys: |
317313
cli-build-${{ runner.os }}-
318-
lookup-only: true
319314
320315
- name: Build CLI
321-
if: steps.cli-build-cache.outputs.cache-hit != 'true'
322316
working-directory: packages/cli
323317
run: pnpm run build
324318

0 commit comments

Comments
 (0)