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:
Matt Kane
2026-04-05 08:22:17 +01:00
committed by GitHub
parent c4977e1fd1
commit 5beb0ddc33
8 changed files with 97 additions and 71 deletions

View File

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

View 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,
},
});

View File

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