Skip to content

Playwright - feature/3x-github-packages #48

Playwright - feature/3x-github-packages

Playwright - feature/3x-github-packages #48

Workflow file for this run

on: pull_request
name: Test
run-name: "Playwright - ${{ github.head_ref || github.ref_name }}"
env:
COMPOSE_USER: runner
jobs:
frontend-build-and-test:
name: Playwright
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup network
run: docker network create frontend
- name: Composer install
run: |
docker compose run --rm phpfpm composer install
- name: Copy fixture assets to public/fixtures
run: |
docker compose run --rm phpfpm cp -r fixtures/public/fixtures public/fixtures
- name: Build assets
run: |
docker compose run --rm node npm install
docker compose run --rm node npm run build
- name: Run playwright
env:
CI: "true"
run: |
docker compose run --rm playwright npx playwright install --with-deps
docker compose run --rm playwright npx playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30