ci: deploy simulator and run post-deploy UI tests
This commit is contained in:
@@ -54,6 +54,21 @@ npm run build
|
||||
# Browser UI smoke tests (requires a Playwright browser install once)
|
||||
npx playwright install chromium
|
||||
npm run test:ui
|
||||
|
||||
## Docker deployment
|
||||
|
||||
The production image is a static Nginx container. It serves the simulator on
|
||||
port 80 inside the container and uses `SYSTEM_LANDSCAPE_PORT` for the host
|
||||
port (7004 by default):
|
||||
|
||||
```bash
|
||||
docker compose up -d --build
|
||||
curl http://localhost:7004/healthz
|
||||
```
|
||||
|
||||
The Gitea workflow builds and deploys `main` to port 7004, then runs the
|
||||
Playwright suite against `https://syssim.dumas.ddns.net`. The post-deploy
|
||||
browser job fails the workflow if the deployed UI does not pass.
|
||||
```
|
||||
|
||||
## Limitations
|
||||
|
||||
Reference in New Issue
Block a user