refactor: split smoke and integration test configs into separate CI jobs (#264)
* refactor: split smoke and integration test configs into separate CI jobs * fix: move CLA labeling from triage to CLA workflow * fix: install formatters in temp dir to avoid catalog: protocol error * fix: handle 404 when removing labels that don't exist on the PR
This commit is contained in:
@@ -150,7 +150,8 @@
|
||||
"typecheck": "tsgo --noEmit",
|
||||
"check": "publint && attw --pack --ignore-rules=cjs-resolves-to-esm --ignore-rules=no-resolution --ignore-rules=internal-resolution-error",
|
||||
"test": "vitest",
|
||||
"test:smoke": "vitest run --config vitest.smoke.config.ts"
|
||||
"test:smoke": "vitest run --config vitest.smoke.config.ts",
|
||||
"test:integration": "vitest run --config vitest.integration.config.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@emdash-cms/admin": "workspace:*",
|
||||
|
||||
14
packages/core/vitest.integration.config.ts
Normal file
14
packages/core/vitest.integration.config.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { defineConfig } from "vitest/config";
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
globals: true,
|
||||
environment: "node",
|
||||
include: ["tests/integration/cli/**/*.test.ts", "tests/integration/client/**/*.test.ts"],
|
||||
// These tests boot real Astro dev servers in beforeAll hooks.
|
||||
// Default hookTimeout (10s) is too short -- server startup +
|
||||
// migrations + seed can take 30-60s.
|
||||
testTimeout: 30_000,
|
||||
hookTimeout: 120_000,
|
||||
},
|
||||
});
|
||||
@@ -4,11 +4,7 @@ export default defineConfig({
|
||||
test: {
|
||||
globals: true,
|
||||
environment: "node",
|
||||
include: [
|
||||
"tests/integration/smoke/**/*.test.ts",
|
||||
"tests/integration/cli/**/*.test.ts",
|
||||
"tests/integration/client/**/*.test.ts",
|
||||
],
|
||||
include: ["tests/integration/smoke/**/*.test.ts"],
|
||||
// Smoke tests boot real Astro dev servers in beforeAll hooks.
|
||||
// Default hookTimeout (10s) is too short -- server startup +
|
||||
// migrations + seed can take 30-60s, especially on first run
|
||||
|
||||
Reference in New Issue
Block a user