From 562631f151a0bb79385692bb655b3dcfe66d2f16 Mon Sep 17 00:00:00 2001 From: nitrix Date: Fri, 6 Mar 2026 18:14:20 +0100 Subject: [PATCH] Add frontend-e2e job to CI pipeline Runs Playwright E2E tests with Chromium after checkout. Uploads HTML report as artifact on failure. build-and-publish now requires all three test jobs. --- .gitea/workflows/ci.yaml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 8634a30..326de78 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -46,8 +46,35 @@ jobs: - name: Production build run: cd frontend && npm run build + frontend-e2e: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Node 24 + uses: actions/setup-node@v4 + with: + node-version: 24 + + - name: Install dependencies + run: cd frontend && npm ci + + - name: Install Playwright browsers + run: cd frontend && npx playwright install --with-deps chromium + + - name: Run E2E tests + run: cd frontend && npm run test:e2e + + - name: Upload Playwright report + uses: actions/upload-artifact@v4 + if: ${{ !cancelled() }} + with: + name: playwright-report + path: frontend/playwright-report/ + retention-days: 30 + build-and-publish: - needs: [backend-test, frontend-test] + needs: [backend-test, frontend-test, frontend-e2e] if: startsWith(github.ref, 'refs/tags/') && contains(github.ref_name, '.') runs-on: ubuntu-latest steps: