diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 87882f18..04155328 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -263,3 +263,31 @@ jobs: - name: Check for changes in specifications (json) run: git diff --diff-filter=ACMRT --exit-code public/api-spec-v2.json + + frontend-build-and-test: + name: Playwright + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup network + run: docker network create frontend + + - name: Run playwright + env: + CI: 'true' + run: | + docker compose run --rm node npm install + docker compose run --rm node npm run build + docker compose run --rm playwright npx playwright install --with-deps + docker compose run --rm playwright npx playwright test --retries 3 + + - uses: actions/upload-artifact@v4 + if: always() + with: + name: playwright-report + path: playwright-report/ + retention-days: 30 diff --git a/CHANGELOG.md b/CHANGELOG.md index 91ad6d86..3e9902fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file. * Added ADRs 008 and 009. * Cleaned up Github Actions workflows. * Updated PHP dependencies. +* Added Playwright github action. ### NB! Prior to 3.x the project was split into separate repositories