mirror of
https://mirror.skon.top/github.com/code-yeongyu/oh-my-opencode
synced 2026-05-01 03:59:23 +08:00
ci: adapt workflows and test runner for team-mode
This commit is contained in:
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -39,7 +39,7 @@ jobs:
|
||||
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: "1.3.11"
|
||||
bun-version: "1.3.12"
|
||||
|
||||
- name: Install dependencies
|
||||
run: bun install
|
||||
@@ -56,7 +56,7 @@ jobs:
|
||||
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: "1.3.11"
|
||||
bun-version: "1.3.12"
|
||||
|
||||
- name: Install dependencies
|
||||
run: bun install
|
||||
@@ -81,7 +81,7 @@ jobs:
|
||||
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: "1.3.11"
|
||||
bun-version: "1.3.12"
|
||||
|
||||
- name: Install dependencies
|
||||
run: bun install
|
||||
|
||||
@@ -8,7 +8,16 @@ type CiTestPlan = {
|
||||
|
||||
const TEST_ROOTS = ["bin", "script", "src"] as const
|
||||
const MODULE_MOCK_PATTERN = "mock.module("
|
||||
const ALWAYS_ISOLATED_TEST_FILES = ["src/openclaw/__tests__/reply-listener-discord.test.ts"] as const
|
||||
const ALWAYS_ISOLATED_TEST_FILES = [
|
||||
"src/features/team-mode/team-mailbox/ack.test.ts",
|
||||
"src/features/team-mode/team-mailbox/send.test.ts",
|
||||
"src/features/team-mode/team-runtime/shutdown.test.ts",
|
||||
"src/features/team-mode/team-runtime/status.test.ts",
|
||||
"src/features/team-mode/team-state-store/resume.test.ts",
|
||||
"src/features/team-mode/team-state-store/store.test.ts",
|
||||
"src/hooks/anthropic-context-window-limit-recovery/aggressive-truncation-strategy.test.ts",
|
||||
"src/openclaw/__tests__/reply-listener-discord.test.ts",
|
||||
] as const
|
||||
|
||||
async function collectTestFiles(rootDirectory: string): Promise<string[]> {
|
||||
const testFiles: string[] = []
|
||||
|
||||
Reference in New Issue
Block a user