Przeglądaj źródła

fix(ci): create JUnit output dirs before tests (#20959)

Kit Langton 2 tygodni temu
rodzic
commit
00fa68b3a7

+ 1 - 0
.github/workflows/test.yml

@@ -75,6 +75,7 @@ jobs:
         uses: actions/upload-artifact@v4
         uses: actions/upload-artifact@v4
         with:
         with:
           name: unit-${{ matrix.settings.name }}-${{ github.run_attempt }}
           name: unit-${{ matrix.settings.name }}-${{ github.run_attempt }}
+          include-hidden-files: true
           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

+ 1 - 1
packages/app/package.json

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

+ 1 - 1
packages/opencode/package.json

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