From 8815e6d1b19fa2625cdbc419e53b8132bfec6259 Mon Sep 17 00:00:00 2001 From: balint Date: Sat, 4 Apr 2026 19:33:47 +0200 Subject: [PATCH] add e2e to ci --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 704c019..f4f39f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,6 +37,37 @@ jobs: cd ./frontend yarn run lint + ci-e2e-docker: + runs-on: ubuntu-latest + permissions: + contents: read + packages: read + env: + BACKEND_IMAGE: ${{ vars.BACKEND_IMAGE || 'ghcr.io/morbalint/kemkas-backend:b8565f8e' }} + steps: + - uses: actions/checkout@v4 + - name: Log in to GitHub Container Registry + run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin + - name: Run Docker Compose E2E tests + run: docker compose -f docker-compose.e2e.yaml up --build --abort-on-container-exit --exit-code-from e2e e2e + - name: Upload Playwright HTML report + if: always() + uses: actions/upload-artifact@v4 + with: + name: playwright-report + path: e2e/playwright-report + if-no-files-found: ignore + - name: Upload Playwright test results + if: always() + uses: actions/upload-artifact@v4 + with: + name: playwright-test-results + path: e2e/test-results + if-no-files-found: ignore + - name: Tear down Docker Compose stack + if: always() + run: docker compose -f docker-compose.e2e.yaml down -v --remove-orphans + docker-fe-build: runs-on: ubuntu-latest outputs: