diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index ca745c27..8ded30c2 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -167,12 +167,16 @@ jobs: - name: Start http-server in background run: | - npx http-server build/web -p 8080 -c-1 -a 127.0.0.1 > /dev/null 2>&1 & + npx http-server build/web -p 8080 -c-1 -a 127.0.0.1 --proxy http://127.0.0.1:8080? > /dev/null 2>&1 & echo $! > .http-server.pid - name: Wait for server to be ready run: | timeout 30 bash -c 'until curl -s http://127.0.0.1:8080 > /dev/null; do sleep 1; done' || exit 1 + # Additional wait to ensure Flutter app fully initializes + sleep 3 + # Verify server responds to festival route (tests SPA routing) + curl -f -s http://127.0.0.1:8080/cbf2025 > /dev/null || (echo "SPA routing not working" && exit 1) - name: Run Playwright tests run: npx playwright test diff --git a/.gitignore b/.gitignore index ce95bb87..86cdbae1 100644 --- a/.gitignore +++ b/.gitignore @@ -152,3 +152,4 @@ app.*.symbols # Keep manually created test mocks (build_runner has version compatibility issues) !test/*.mocks.dartscreenshots/ +test/failures/ diff --git a/AGENTS.md b/AGENTS.md index 23fac124..d069f823 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -400,6 +400,373 @@ The project uses GitHub Actions for: - `pubspec.yaml` versions without necessity - License or contribution guidelines +--- + +## πŸ“ Git Commit Best Practices + +### Use Conventional Commits + +Follow the [Conventional Commits](https://www.conventionalcommits.org/) format: + +``` +(): + + + +