From c5306a15d1eba0b2785efa33d9cee005ee5856e7 Mon Sep 17 00:00:00 2001 From: Ryan Kegel Date: Sun, 26 Apr 2026 00:02:25 -0400 Subject: [PATCH] feat: add workflow for promoting master to production with testing and deployment steps --- .gitea/workflows/promote-master.yaml | 1 + frontend/playwright.config.ts | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/promote-master.yaml b/.gitea/workflows/promote-master.yaml index 04f23ef..a1104dd 100644 --- a/.gitea/workflows/promote-master.yaml +++ b/.gitea/workflows/promote-master.yaml @@ -155,6 +155,7 @@ jobs: working-directory: frontend env: CI: "true" + PLAYWRIGHT_BASE_URL: "http://localhost:5173" deploy: runs-on: ubuntu-latest diff --git a/frontend/playwright.config.ts b/frontend/playwright.config.ts index 1ecc40c..efefd3c 100644 --- a/frontend/playwright.config.ts +++ b/frontend/playwright.config.ts @@ -17,6 +17,8 @@ import { /** * See https://playwright.dev/docs/test-configuration. */ +const frontendBaseUrl = process.env.PLAYWRIGHT_BASE_URL || 'https://localhost:5173' + export default defineConfig({ testDir: './e2e', /* Run tests in files in parallel */ @@ -32,7 +34,7 @@ export default defineConfig({ /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: { /* Base URL to use in actions like `await page.goto('')`. */ - baseURL: 'https://localhost:5173', + baseURL: frontendBaseUrl, ignoreHTTPSErrors: true, /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ @@ -220,7 +222,7 @@ export default defineConfig({ webServer: [ { command: 'npm run dev', - url: 'https://localhost:5173', + url: frontendBaseUrl, reuseExistingServer: !process.env.CI, stdout: 'pipe', stderr: 'pipe',