From 17393a5d73ad18af72d8846aba2cef3b0c54540b Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Wed, 11 Dec 2024 22:48:24 +0000 Subject: [PATCH] ci: re-enable e2e tests on frontend --- .github/workflows/build_and_deploy.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index d2db5841f5..0dd5e1e0ae 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -33,6 +33,19 @@ jobs: with: working_dir: src/frontend + frontend-e2e-test: + uses: hotosm/gh-workflows/.github/workflows/test_compose.yml@2.0.9 + with: + playwright: true + cache_image: false + compose_file: docker-compose.yml -f contrib/playwright/docker-compose.yml + compose_service: ui-test + cache_extra_imgs: | + "docker.io/postgis/postgis:${{ vars.POSTGIS_TAG }}" + "docker.io/minio/minio:${{ vars.MINIO_TAG }}" + "mcr.microsoft.com/playwright:${{ vars.PLAYWRIGHT_TAG }}" + secrets: inherit + backend-build: uses: hotosm/gh-workflows/.github/workflows/image_build.yml@2.0.9 needs: [backend-test] @@ -43,7 +56,7 @@ jobs: frontend-build: uses: hotosm/gh-workflows/.github/workflows/image_build.yml@2.0.9 - needs: [frontend-unit-test] + needs: [frontend-unit-test, frontend-e2e-test] with: context: src dockerfile: Dockerfile.ui.prod