Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,15 @@ jobs:
pnpm install --frozen-lockfile

if [ "${{ steps.changes.outputs.code }}" == "true" ]; then
# 运行所有测试:lint + 单元测试 + Storybook 组件测试 + E2E 测试 + 主题检查
TASKS="lint:run typecheck:run build i18n:run theme:run test:run test:storybook e2e:audit e2e:ci e2e:ci:mock e2e:ci:real"
# 运行静态检查
pnpm turbo run lint:run typecheck:run build i18n:run theme:run test:run test:storybook e2e:audit

# 使用 e2e:runner 分片运行 E2E 测试,避免单次全部运行
pnpm e2e:runner --all --mock -j 2
pnpm e2e:runner --all -j 2
pnpm e2e:ci:real
else
TASKS="lint:run typecheck:run build i18n:run theme:run test:run test:storybook"
fi

# Run turbo and capture output, pipefail ensures we get turbo's exit code
if ! pnpm turbo run $TASKS 2>&1 | tee turbo-output.log; then
echo ""
echo "========== TURBO FAILED =========="
grep -A 50 "error\|Error\|ERROR\|failed\|Failed\|FAILED" turbo-output.log || cat turbo-output.log
exit 1
pnpm turbo run lint:run typecheck:run build i18n:run theme:run test:run test:storybook
fi

echo "All checks passed!"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"typecheck": "turbo run typecheck:run --",
"typecheck:run": "tsc --build --noEmit",
"e2e": "bun scripts/e2e.ts",
"e2e:runner": "bun scripts/e2e-runner.ts",
"e2e:all": "turbo run e2e:run e2e:mock:run --",
"e2e:run": "playwright test",
"e2e:mock": "playwright test --config playwright.mock.config.ts",
Expand Down
Loading