feat(cv): rebuild section editing workflow
CI and Deploy / test (push) Failing after 30s
CI and Deploy / deploy (push) Has been skipped

This commit is contained in:
cesnimda
2026-08-27 15:27:54 +02:00
parent ccd0af908c
commit b5249357c7
10 changed files with 525 additions and 221 deletions
+7 -3
View File
@@ -5,6 +5,8 @@ import path from "node:path";
const apiUrl = "http://localhost:5302";
const appUrl = "http://localhost:3300";
const dataRoot = path.join(os.tmpdir(), `jobtracker-e2e-${process.pid}-${Date.now().toString(36)}`);
const reuseServers = process.env.PLAYWRIGHT_REUSE_SERVERS === "true";
const useStaticExport = process.env.PLAYWRIGHT_STATIC_EXPORT === "true";
export default defineConfig({
testDir: "./e2e",
@@ -23,7 +25,7 @@ export default defineConfig({
command: "dotnet run --no-build --configuration Release --project ../JobTrackerApi/JobTrackerApi.csproj --urls http://localhost:5302",
url: `${apiUrl}/health`,
timeout: 120_000,
reuseExistingServer: false,
reuseExistingServer: reuseServers,
env: {
ASPNETCORE_ENVIRONMENT: "Development",
Auth__Require: "true",
@@ -40,10 +42,12 @@ export default defineConfig({
},
},
{
command: "npm run dev -- --hostname localhost --port 3300",
command: useStaticExport
? "npm run build && npm run serve:export"
: "npm run dev -- --hostname localhost --port 3300",
url: appUrl,
timeout: 120_000,
reuseExistingServer: false,
reuseExistingServer: reuseServers,
env: { NEXT_PUBLIC_API_BASE_URL: `${apiUrl}/api` },
},
],