mirror of
https://github.com/morbalint/kemkas.git
synced 2026-07-17 19:03:46 +00:00
add e2e to ci
This commit is contained in:
@@ -37,6 +37,37 @@ jobs:
|
|||||||
cd ./frontend
|
cd ./frontend
|
||||||
yarn run lint
|
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:
|
docker-fe-build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
|
|||||||
Reference in New Issue
Block a user