Skip to content

Commit 00fa68b

Browse files
authored
fix(ci): create JUnit output dirs before tests (anomalyco#20959)
1 parent 288eb04 commit 00fa68b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575
uses: actions/upload-artifact@v4
7676
with:
7777
name: unit-${{ matrix.settings.name }}-${{ github.run_attempt }}
78+
include-hidden-files: true
7879
if-no-files-found: ignore
7980
retention-days: 7
8081
path: packages/*/.artifacts/unit/junit.xml

packages/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"build": "vite build",
1616
"serve": "vite preview",
1717
"test": "bun run test:unit",
18-
"test:ci": "bun test --preload ./happydom.ts ./src --reporter=junit --reporter-outfile=.artifacts/unit/junit.xml",
18+
"test:ci": "mkdir -p .artifacts/unit && bun test --preload ./happydom.ts ./src --reporter=junit --reporter-outfile=.artifacts/unit/junit.xml",
1919
"test:unit": "bun test --preload ./happydom.ts ./src",
2020
"test:unit:watch": "bun test --watch --preload ./happydom.ts ./src",
2121
"test:e2e": "playwright test",

packages/opencode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"prepare": "effect-language-service patch || true",
1010
"typecheck": "tsgo --noEmit",
1111
"test": "bun test --timeout 30000",
12-
"test:ci": "bun test --timeout 30000 --reporter=junit --reporter-outfile=.artifacts/unit/junit.xml",
12+
"test:ci": "mkdir -p .artifacts/unit && bun test --timeout 30000 --reporter=junit --reporter-outfile=.artifacts/unit/junit.xml",
1313
"build": "bun run script/build.ts",
1414
"upgrade-opentui": "bun run script/upgrade-opentui.ts",
1515
"dev": "bun run --conditions=browser ./src/index.ts",

0 commit comments

Comments
 (0)