fix(ci): write unit junit reports to artifacts dir
parent
a8f62dfe77
commit
1fdf29d471
|
|
@ -64,7 +64,7 @@ jobs:
|
||||||
if: always()
|
if: always()
|
||||||
uses: mikepenz/action-junit-report@v6
|
uses: mikepenz/action-junit-report@v6
|
||||||
with:
|
with:
|
||||||
report_paths: packages/*/.artifacts/unit/junit.xml
|
report_paths: packages/*/artifacts/unit/junit.xml
|
||||||
check_name: "unit results (${{ matrix.settings.name }})"
|
check_name: "unit results (${{ matrix.settings.name }})"
|
||||||
detailed_summary: true
|
detailed_summary: true
|
||||||
include_time_in_summary: true
|
include_time_in_summary: true
|
||||||
|
|
@ -77,7 +77,7 @@ jobs:
|
||||||
name: unit-${{ matrix.settings.name }}-${{ github.run_attempt }}
|
name: unit-${{ matrix.settings.name }}-${{ github.run_attempt }}
|
||||||
if-no-files-found: ignore
|
if-no-files-found: ignore
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
path: packages/*/.artifacts/unit/junit.xml
|
path: packages/*/artifacts/unit/junit.xml
|
||||||
|
|
||||||
e2e:
|
e2e:
|
||||||
name: e2e (${{ matrix.settings.name }})
|
name: e2e (${{ matrix.settings.name }})
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"serve": "vite preview",
|
"serve": "vite preview",
|
||||||
"test": "bun run test:unit",
|
"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": "bun test --preload ./happydom.ts ./src",
|
||||||
"test:unit:watch": "bun test --watch --preload ./happydom.ts ./src",
|
"test:unit:watch": "bun test --watch --preload ./happydom.ts ./src",
|
||||||
"test:e2e": "playwright test",
|
"test:e2e": "playwright test",
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
"prepare": "effect-language-service patch || true",
|
"prepare": "effect-language-service patch || true",
|
||||||
"typecheck": "tsgo --noEmit",
|
"typecheck": "tsgo --noEmit",
|
||||||
"test": "bun test --timeout 30000",
|
"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",
|
"build": "bun run script/build.ts",
|
||||||
"upgrade-opentui": "bun run script/upgrade-opentui.ts",
|
"upgrade-opentui": "bun run script/upgrade-opentui.ts",
|
||||||
"dev": "bun run --conditions=browser ./src/index.ts",
|
"dev": "bun run --conditions=browser ./src/index.ts",
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
},
|
},
|
||||||
"opencode#test:ci": {
|
"opencode#test:ci": {
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
"outputs": [".artifacts/unit/junit.xml"],
|
"outputs": ["artifacts/unit/junit.xml"],
|
||||||
"passThroughEnv": ["*"]
|
"passThroughEnv": ["*"]
|
||||||
},
|
},
|
||||||
"@opencode-ai/app#test": {
|
"@opencode-ai/app#test": {
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
},
|
},
|
||||||
"@opencode-ai/app#test:ci": {
|
"@opencode-ai/app#test:ci": {
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
"outputs": [".artifacts/unit/junit.xml"],
|
"outputs": ["artifacts/unit/junit.xml"],
|
||||||
"passThroughEnv": ["*"]
|
"passThroughEnv": ["*"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue