From 38156d49f36e7b263fbe736534260cba28e029da Mon Sep 17 00:00:00 2001 From: justsisyphus Date: Wed, 28 Jan 2026 01:01:45 +0900 Subject: [PATCH] ci: use find/xargs to exclude mock-heavy test files --- .github/workflows/publish.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f137cde76..eb198e472 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -47,11 +47,14 @@ jobs: - name: Run tests run: | - # Run tests that use mock.module() separately to avoid pollution + # Run tests that use mock.module() in isolated processes first bun test src/plugin-handlers/config-handler.test.ts bun test src/hooks/compaction-context-injector/index.test.ts - # Run all other tests (excluding already-run mock-heavy files) - bun test --ignore '**/config-handler.test.ts' --ignore '**/compaction-context-injector/index.test.ts' + # Run remaining tests (find all test files, exclude mock-heavy ones, run in single batch) + find src -name '*.test.ts' \ + ! -path '**/config-handler.test.ts' \ + ! -path '**/compaction-context-injector/index.test.ts' \ + | xargs bun test typecheck: runs-on: ubuntu-latest