@@ -31,14 +31,48 @@ jobs:
3131 aztec-up 3.0.0-devnet.20251212
3232 aztec start --local-network &
3333
34+ - name : Wait for local network to be ready
35+ run : |
36+ echo "Waiting for Aztec node to be ready..."
37+ timeout 300 bash -c 'until curl -s http://localhost:8080/status > /dev/null 2>&1; do sleep 5; echo "Waiting..."; done'
38+ echo "Aztec node is ready!"
39+
3440 - name : Install dependencies
3541 run : yarn install
3642
3743 - name : Install Playwright Browsers
3844 run : yarn playwright install --with-deps
3945
40- - name : Build
41- run : yarn build
46+ - name : Build contracts
47+ run : yarn build-contracts
48+
49+ - name : Deploy contracts
50+ run : PROVER_ENABLED=false yarn deploy-contracts
51+
52+ - name : Build app (after deploy so env vars are available)
53+ run : yarn build-app
4254
43- - name : Run tests
44- run : yarn test
55+ - name : Start static server
56+ run : |
57+ echo "Starting static server..."
58+ yarn serve:static &
59+ SERVER_PID=$!
60+ echo $SERVER_PID > server.pid
61+ echo "Server PID: $SERVER_PID"
62+ echo "Waiting for server to be ready..."
63+ timeout 60 bash -c 'until curl -sf http://127.0.0.1:3000 > /dev/null 2>&1; do sleep 2; echo "Waiting..."; done'
64+ echo "Server is up!"
65+
66+ - name : Run Playwright tests
67+ run : yarn playwright test --reporter=list
68+ env :
69+ CI : true
70+ FORCE_COLOR : 1
71+
72+ - name : Stop server
73+ if : always()
74+ run : |
75+ if [ -f server.pid ]; then
76+ kill $(cat server.pid) || true
77+ rm server.pid
78+ fi
0 commit comments