Skip to content

Add Playwright test for project creation workflow #545

Add Playwright test for project creation workflow

Add Playwright test for project creation workflow #545

name: 🧪 PR Tests Frontend
on:
pull_request:
branches:
- main
- staging
- development
# Workflow is triggered only if src/frontend changes
paths:
- src/frontend/**
# Allow manual trigger (workflow_dispatch)
workflow_dispatch:
jobs:
unit-tests:
uses: hotosm/gh-workflows/.github/workflows/test_pnpm.yml@2.0.0
with:
working_dir: src/frontend
e2e-tests:
uses: hotosm/gh-workflows/.github/workflows/test_compose.yml@2.0.5

Check failure on line 22 in .github/workflows/pr_test_frontend.yml

View workflow run for this annotation

GitHub Actions / 🧪 PR Tests Frontend

Invalid workflow file

The workflow is not valid. In .github/workflows/pr_test_frontend.yml (Line: 22, Col: 11): Error from called workflow hotosm/gh-workflows/.github/workflows/test_compose.yml@2.0.5 (Line: 94, Col: 9): Unexpected symbol: '""'. Located at position 22 within expression: inputs.image_name != "" && inputs.cache_image In .github/workflows/pr_test_frontend.yml (Line: 22, Col: 11): Error from called workflow hotosm/gh-workflows/.github/workflows/test_compose.yml@2.0.5 (Line: 111, Col: 9): Unexpected symbol: '""'. Located at position 22 within expression: inputs.image_name != "" && needs.check-img-cache.outputs.cache-hit != 'true'
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 }}"
"ghcr.io/hotosm/fmtm/frontend:playwright-${{ vars.PLAYWRIGHT_TAG }}"
secrets: inherit