add e2e to ci

This commit is contained in:
2026-04-04 19:33:47 +02:00
parent 5fce1d591f
commit 8815e6d1b1
+31
View File
@@ -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: