Skip to content

Commit 0724f05

Browse files
committed
feat: add debugging steps to CI workflow for live-view package
- Introduced a debug step to list contents of the live-view package and the repository root before installation. - Added a check for the presence of pnpm-lock.yaml, terminating the CI if the file is missing, to ensure proper dependency management.
1 parent e256565 commit 0724f05

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/test-live-view.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,22 @@ jobs:
3232
with:
3333
version: 8
3434

35+
- name: Debug - List contents before install
36+
run: |
37+
echo "::group::packages/live-view 文件列表"
38+
ls -l packages/live-view
39+
echo "::endgroup::"
40+
echo "::group::repo 根目录文件列表"
41+
ls -l .
42+
echo "::endgroup::"
43+
if [ ! -f packages/live-view/pnpm-lock.yaml ]; then
44+
echo "❌ pnpm-lock.yaml 文件丢失,CI终止!"
45+
exit 1
46+
else
47+
echo "✅ 找到 pnpm-lock.yaml"
48+
true
49+
fi
50+
3551
- name: Install dependencies
3652
run: |
3753
cd packages/live-view
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
onlyBuiltDependencies:
2+
- esbuild

0 commit comments

Comments
 (0)