Skip to content

Commit ede6c40

Browse files
committed
test update work flow
1 parent 7d7792d commit ede6c40

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: actions/cache@v4
3838
with:
3939
path: node_modules
40-
key: npm-node-${{ hashFiles('package.json') }}
40+
key: npm-node-${{ hashFiles('package-lock.json') }}
4141
restore-keys: |
4242
npm-node-
4343
@@ -52,7 +52,7 @@ jobs:
5252

5353
# 2. 解析依赖版本(只需一次)
5454
resolve_uast_versions:
55-
needs: [get_version_and_validate,run_tests]
55+
needs: get_version_and_validate
5656
runs-on: ubuntu-latest
5757
outputs:
5858
spec_version: ${{ steps.uast.outputs.spec_version }}
@@ -90,7 +90,7 @@ jobs:
9090
9191
# 3. 构建多平台二进制(不再重复提取版本)
9292
build_engine:
93-
needs: [get_version_and_validate, resolve_uast_versions,run_tests]
93+
needs: [get_version_and_validate, resolve_uast_versions]
9494
strategy:
9595
matrix:
9696
platform:
@@ -133,7 +133,10 @@ jobs:
133133
echo "🧪 Running TypeScript type check (no emit)..."
134134
npx tsc --noEmit --pretty
135135
echo "✅ TypeScript 类型检查通过,无编译错误"
136-
136+
- name: 🧪 Run All Tests
137+
run: |
138+
npm run test-all
139+
echo "✅完成所有测试"
137140
- name: Compile TypeScript with tsc
138141
run: |
139142
echo "🛠️ Compiling TypeScript..."

0 commit comments

Comments
 (0)