feat: add provider response model mapping and codex openai compatibility #464
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 Playwright Tests | |
| on: | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| playwright: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # ===== Build backend ===== | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.node-version' | |
| - name: Build frontend | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| package_json_file: web/package.json | |
| - name: Install and build web | |
| working-directory: web | |
| run: pnpm install && pnpm build | |
| - name: Build server | |
| run: go build -o maxx ./cmd/maxx | |
| # ===== Start server ===== | |
| - name: Start maxx server | |
| run: | | |
| ./maxx -addr :9880 > /tmp/maxx.log 2>&1 & | |
| server_pid=$! | |
| # Wait for server to be ready | |
| ready=0 | |
| for i in $(seq 1 30); do | |
| if curl -sf http://localhost:9880/api/admin/auth/status > /dev/null 2>&1; then | |
| echo "Server is ready" | |
| ready=1 | |
| break | |
| fi | |
| if ! kill -0 "$server_pid" 2>/dev/null; then | |
| echo "Server exited before becoming ready" | |
| cat /tmp/maxx.log | |
| exit 1 | |
| fi | |
| sleep 1 | |
| done | |
| if [ "$ready" -ne 1 ]; then | |
| echo "Server did not become ready within 30s" | |
| cat /tmp/maxx.log | |
| exit 1 | |
| fi | |
| env: | |
| MAXX_ADMIN_PASSWORD: test123 | |
| # ===== Run Playwright tests ===== | |
| - name: Install Playwright dependencies | |
| working-directory: tests/e2e/playwright | |
| run: | | |
| npm install | |
| npx playwright install chromium --with-deps | |
| - name: Run Playwright tests | |
| working-directory: tests/e2e/playwright | |
| run: npm test | |
| - name: Upload screenshots on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: playwright-screenshots | |
| path: /tmp/passkey-*.png | |
| retention-days: 7 |