ci: add test and lint workflows, trigger on main+dev#907
Merged
yanyihan-xiaomi merged 5 commits intoJun 17, 2026
Conversation
- typecheck.yml: expanded branch triggers from dev-only to main+dev - test.yml: unit tests via turbo (Linux) - lint.yml: oxlint static analysis - AGENTS.md: fix outdated default branch info
- bug-report.yml: version field label and id - config.yml: remove upstream Discord link
The test was passing trust: false which triggers an interactive prompt that blocks CI. Set trust: true to bypass it.
The MiMo auth plugin's openBrowser() was opening actual browser windows during test runs, blocking CI and spamming locally. Skip when CI or NODE_ENV=test is set.
The package was renamed but turbo.json still referenced the old name, causing the 326 opencode tests to be silently skipped.
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary / 概述
dev-only tomain+dev分支触发从仅
dev扩展为main+devbun turbo test(Linux, with turbo cache and concurrency control)新增单元测试 workflow
bun lint(oxlint static analysis)新增 oxlint 静态检查 workflow
opencode#test→@mimo-ai/cli#test(package was renamed but turbo config wasn't updated, causing all 326 opencode tests to be silently skipped)修复 turbo 任务名,之前包名改了但 turbo.json 没跟上,导致 326 个测试一直没在跑
修正过时的默认分支信息
Issue 模板品牌更名
openBrowser()in test/CI environments (NODE_ENV=testorCI=true)测试/CI 环境跳过打开浏览器,避免阻塞
trust: trueto skip interactive workspace trust prompt in tests测试中跳过 workspace trust 交互弹窗
Pre-existing test failures (not introduced by this PR) / 已有测试失败(非本 PR 引入)
Fixing the turbo task name exposed 17 pre-existing test failures that were never caught because
opencode#testwas silently skipped (package renamed to@mimo-ai/clibut turbo.json not updated).修复 turbo 任务名后暴露了 17 个已有测试失败。这些失败之前从未被发现,因为包名从
opencode改成了@mimo-ai/cli后 turbo.json 没更新,测试一直被静默跳过。DEFAULT_CONTEXT_WINDOWchanged to 1M, test still expects 200Ksrc/tool/actor.tsstill containstaskRegistrysubagent_type: "general"referenceThese should be addressed in follow-up PRs. / 这些应在后续 PR 中修复。
Test plan / 测试计划
bun typecheckpasses (0 errors)bun lintpasses (0 errors, warnings only)