feat: update to 3.0.0-devnet.20251212 #39
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 | |
| run: yarn build | |
| - name: Deploy contracts (prep for test) | |
| run: PROVER_ENABLED=false yarn deploy-contracts | |
| - name: Start static server | |
| run: | | |
| echo "Starting static server..." | |
| yarn serve:static & | |
| SERVER_PID=$! | |
| echo $SERVER_PID > server.pid | |
| echo "Server PID: $SERVER_PID" | |
| sleep 5 | |
| echo "Checking server health..." | |
| curl -sf http://127.0.0.1:3000 > /dev/null && echo "Server is up!" || (echo "Server failed to start" && exit 1) | |
| - name: Run Playwright tests | |
| run: yarn playwright test --reporter=list | |
| env: | |
| CI: true | |
| FORCE_COLOR: 1 | |
| - name: Stop server | |
| if: always() | |
| run: | | |
| if [ -f server.pid ]; then | |
| kill $(cat server.pid) || true | |
| rm server.pid | |
| fi |