fix: fix e2e tests #17
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: ["02-09-fix_fix_e2e_tests"] | |
| concurrency: | |
| group: e2e-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-e2e-ui: | |
| name: E2E UI (Playwright) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.25.7" | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Set up Docker Compose | |
| run: | | |
| docker --version | |
| if ! docker compose version >/dev/null 2>&1; then | |
| echo "Installing Docker Compose plugin..." | |
| DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker} | |
| mkdir -p "$DOCKER_CONFIG/cli-plugins" | |
| curl -SL "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o "$DOCKER_CONFIG/cli-plugins/docker-compose" | |
| chmod +x "$DOCKER_CONFIG/cli-plugins/docker-compose" | |
| docker compose version | |
| else | |
| echo "Docker Compose plugin is available" | |
| docker compose version | |
| fi | |
| - name: Run E2E UI tests | |
| env: | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| # Optional: for SSE MCP tests (e.g. remote proxy). Set in repo secrets. | |
| MCP_SSE_URL: ${{ secrets.MCP_SSE_URL }} | |
| MCP_SSE_HEADERS: ${{ secrets.MCP_SSE_HEADERS }} | |
| run: ./.github/workflows/scripts/test-e2e-ui.sh | |
| - name: Upload Playwright artifacts | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: playwright-report | |
| path: | | |
| tests/e2e/test-results/ | |
| tests/e2e/playwright-report/ | |
| retention-days: 7 |