Skip to content

ci: add e2e to turbo parallel execution - #61

Merged
Gaubee merged 1 commit into
mainfrom
ci/turbo-e2e
Dec 22, 2025
Merged

Gaubee merged 1 commit into
mainfrom
ci/turbo-e2e

Conversation

@Gaubee

@Gaubee Gaubee commented Dec 22, 2025

Copy link
Copy Markdown
Contributor

E2E 并行优化

变更

  1. 添加 e2e:ci 脚本(package.json)
  2. 添加 e2e:ci 任务(turbo.json)
  3. E2E 合并到 turbo run 命令中

效果

# 之前(串行)
turbo run typecheck:run build i18n:run test:run  # ~30s
pnpm e2e ...                                      # ~20s(串行)

# 现在(并行)
turbo run typecheck:run build i18n:run test:run e2e:ci  # 全部并行

E2E 只在代码变更时运行(通过 changes job 检测)。

@Gaubee
Gaubee force-pushed the ci/turbo-e2e branch 2 times, most recently from e5308ec to 1088483 Compare December 22, 2025 09:02
Key insight: GitHub Actions pre-downloads ALL 'uses:' actions
in Set up job phase, regardless of 'if' conditions.

Solution: Completely separate jobs
- ci-fast: self-hosted, NO 'uses:' declarations (zero downloads)
- ci-standard: github-hosted, standard actions
- checks: status aggregation (required by branch protection)

Control via vars.USE_SELF_HOSTED:
- true: ci-fast runs
- false/unset: ci-standard runs

Scripts:
- start-all.sh: sets USE_SELF_HOSTED=true
- stop-all.sh: sets USE_SELF_HOSTED=false
- env-doctor.sh: checks dependencies and permissions
@Gaubee
Gaubee merged commit 10606b1 into main Dec 22, 2025
3 checks passed
@Gaubee
Gaubee deleted the ci/turbo-e2e branch January 4, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant