74 lines
2.4 KiB
YAML
74 lines
2.4 KiB
YAML
name: E2E Tests
|
|
|
|
on:
|
|
push:
|
|
branches: ["02-27-feat_extend_e2e_ui_tests"]
|
|
|
|
concurrency:
|
|
group: e2e-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test-e2e-ui:
|
|
name: E2E UI (Playwright)
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 45
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Harden the runner (Audit all outbound calls)
|
|
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
|
with:
|
|
go-version: "1.26.2"
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
|
with:
|
|
node-version: "25"
|
|
|
|
- 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 }}
|
|
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
# Optional: for SSE MCP tests (e.g. remote proxy). Set in repo secrets.
|
|
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@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
|
|
with:
|
|
name: playwright-report
|
|
path: |
|
|
tests/e2e/test-results/
|
|
tests/e2e/playwright-report/
|
|
retention-days: 7
|