feat: update to 3.0.0-devnet.20251212 #46
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: E2E Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| timeout-minutes: 120 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| - name: Set up Docker | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Install Aztec CLI | |
| run: | | |
| curl -s https://install.aztec.network > tmp.sh | |
| bash tmp.sh <<< yes "yes" | |
| - name: Update path | |
| run: echo "/home/runner/.aztec/bin" >> $GITHUB_PATH | |
| - name: Set Aztec version and start local network | |
| run: | | |
| aztec-up 3.0.0-devnet.20251212 | |
| aztec start --local-network & | |
| - name: Wait for local network to be ready | |
| run: | | |
| echo "Waiting for Aztec node to be ready..." | |
| timeout 300 bash -c 'until curl -s http://localhost:8080/status > /dev/null 2>&1; do sleep 5; echo "Waiting..."; done' | |
| echo "Aztec node is ready!" | |
| - name: Install dependencies | |
| run: yarn install | |
| - name: Install Playwright Browsers | |
| run: yarn playwright install --with-deps | |
| - name: Build contracts | |
| run: yarn build-contracts | |
| - name: Deploy contracts | |
| run: PROVER_ENABLED=false yarn deploy-contracts | |
| - name: Build app (after deploy so env vars are available) | |
| run: yarn build-app | |
| - name: Start static server | |
| run: | | |
| echo "Starting static server..." | |
| yarn serve:static & | |
| SERVER_PID=$! | |
| echo $SERVER_PID > server.pid | |
| echo "Server PID: $SERVER_PID" | |
| echo "Waiting for server to be ready..." | |
| timeout 60 bash -c 'until curl -sf http://127.0.0.1:3000 > /dev/null 2>&1; do sleep 2; echo "Waiting..."; done' | |
| echo "Server is up!" | |
| - name: Run Playwright tests | |
| run: npx playwright test --reporter=list --trace=on | |
| env: | |
| CI: true | |
| FORCE_COLOR: 1 | |
| DEBUG: pw:api | |
| PLAYWRIGHT_BROWSERS_PATH: 0 | |
| - name: Upload Playwright traces | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: playwright-traces | |
| path: test-results/ | |
| retention-days: 7 | |
| - name: Setup tmate session on failure | |
| if: failure() | |
| uses: mxschmitt/action-tmate@v3 | |
| timeout-minutes: 15 | |
| - name: Stop server | |
| if: always() | |
| run: | | |
| if [ -f server.pid ]; then | |
| kill $(cat server.pid) || true | |
| rm server.pid | |
| fi |