feat: add workflow for promoting master to production with testing and deployment steps
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m21s

This commit is contained in:
2026-04-26 00:02:25 -04:00
parent fa1a422747
commit c5306a15d1
2 changed files with 5 additions and 2 deletions

View File

@@ -155,6 +155,7 @@ jobs:
working-directory: frontend working-directory: frontend
env: env:
CI: "true" CI: "true"
PLAYWRIGHT_BASE_URL: "http://localhost:5173"
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -17,6 +17,8 @@ import {
/** /**
* See https://playwright.dev/docs/test-configuration. * See https://playwright.dev/docs/test-configuration.
*/ */
const frontendBaseUrl = process.env.PLAYWRIGHT_BASE_URL || 'https://localhost:5173'
export default defineConfig({ export default defineConfig({
testDir: './e2e', testDir: './e2e',
/* Run tests in files in parallel */ /* 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. */ /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: { use: {
/* Base URL to use in actions like `await page.goto('')`. */ /* Base URL to use in actions like `await page.goto('')`. */
baseURL: 'https://localhost:5173', baseURL: frontendBaseUrl,
ignoreHTTPSErrors: true, ignoreHTTPSErrors: true,
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
@@ -220,7 +222,7 @@ export default defineConfig({
webServer: [ webServer: [
{ {
command: 'npm run dev', command: 'npm run dev',
url: 'https://localhost:5173', url: frontendBaseUrl,
reuseExistingServer: !process.env.CI, reuseExistingServer: !process.env.CI,
stdout: 'pipe', stdout: 'pipe',
stderr: 'pipe', stderr: 'pipe',