fix(ci): write unit junit reports to artifacts dir

kit/ci-unit-reporting
Kit Langton 2026-04-03 17:05:59 -04:00
parent a8f62dfe77
commit 1fdf29d471
4 changed files with 6 additions and 6 deletions

View File

@ -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 }})

View File

@ -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",

View File

@ -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",

View File

@ -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": ["*"]
}
}