test: e2e #8
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: Tests | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| quality: | |
| name: Format and Node Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "24.x" | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Check formatting | |
| run: npm run format:check | |
| - name: Run Node tests | |
| run: npm test | |
| e2e: | |
| name: Proxy E2E Tests | |
| runs-on: ubuntu-latest | |
| needs: quality | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Run E2E suite | |
| run: npm run test:e2e | |
| - name: Run two-container residential suite | |
| run: npm run test:e2e:residential | |
| - name: Logs (on failure) | |
| if: failure() | |
| run: | | |
| docker compose --project-directory e2e -f e2e/docker-compose.yml logs || true | |
| docker compose --project-directory e2e -f e2e/docker-compose.two-container.yml logs || true |