From 1fdf29d4713d734d75ab82a641712473098000b5 Mon Sep 17 00:00:00 2001 From: Kit Langton Date: Fri, 3 Apr 2026 17:05:59 -0400 Subject: [PATCH] fix(ci): write unit junit reports to artifacts dir --- .github/workflows/test.yml | 4 ++-- packages/app/package.json | 2 +- packages/opencode/package.json | 2 +- turbo.json | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 119d652ae9..d4d4dc6b5d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -64,7 +64,7 @@ jobs: if: always() uses: mikepenz/action-junit-report@v6 with: - report_paths: packages/*/.artifacts/unit/junit.xml + report_paths: packages/*/artifacts/unit/junit.xml check_name: "unit results (${{ matrix.settings.name }})" detailed_summary: true include_time_in_summary: true @@ -77,7 +77,7 @@ jobs: name: unit-${{ matrix.settings.name }}-${{ github.run_attempt }} if-no-files-found: ignore retention-days: 7 - path: packages/*/.artifacts/unit/junit.xml + path: packages/*/artifacts/unit/junit.xml e2e: name: e2e (${{ matrix.settings.name }}) diff --git a/packages/app/package.json b/packages/app/package.json index 62749e209a..fbbb68e10a 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -15,7 +15,7 @@ "build": "vite build", "serve": "vite preview", "test": "bun run test:unit", - "test:ci": "bun test --preload ./happydom.ts ./src --reporter=junit --reporter-outfile=.artifacts/unit/junit.xml", + "test:ci": "mkdir -p artifacts/unit && bun test --preload ./happydom.ts ./src --reporter=junit --reporter-outfile=artifacts/unit/junit.xml", "test:unit": "bun test --preload ./happydom.ts ./src", "test:unit:watch": "bun test --watch --preload ./happydom.ts ./src", "test:e2e": "playwright test", diff --git a/packages/opencode/package.json b/packages/opencode/package.json index 96c7612e82..47330db3a1 100644 --- a/packages/opencode/package.json +++ b/packages/opencode/package.json @@ -9,7 +9,7 @@ "prepare": "effect-language-service patch || true", "typecheck": "tsgo --noEmit", "test": "bun test --timeout 30000", - "test:ci": "bun test --timeout 30000 --reporter=junit --reporter-outfile=.artifacts/unit/junit.xml", + "test:ci": "mkdir -p artifacts/unit && bun test --timeout 30000 --reporter=junit --reporter-outfile=artifacts/unit/junit.xml", "build": "bun run script/build.ts", "upgrade-opentui": "bun run script/upgrade-opentui.ts", "dev": "bun run --conditions=browser ./src/index.ts", diff --git a/turbo.json b/turbo.json index 28c2fa2de0..687d6766b1 100644 --- a/turbo.json +++ b/turbo.json @@ -15,7 +15,7 @@ }, "opencode#test:ci": { "dependsOn": ["^build"], - "outputs": [".artifacts/unit/junit.xml"], + "outputs": ["artifacts/unit/junit.xml"], "passThroughEnv": ["*"] }, "@opencode-ai/app#test": { @@ -24,7 +24,7 @@ }, "@opencode-ai/app#test:ci": { "dependsOn": ["^build"], - "outputs": [".artifacts/unit/junit.xml"], + "outputs": ["artifacts/unit/junit.xml"], "passThroughEnv": ["*"] } }