e2e-playwright.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. name: E2E (Cine Studio)
  2. # Browser-driven end-to-end tests for the Cine Studio WebApp. These are
  3. # front-end only (Node + Playwright + a static file server) and do not
  4. # touch the Go build, so they run as an independent job. Scoped to changes
  5. # under the app or the test harness to avoid running on unrelated commits.
  6. on:
  7. push:
  8. paths:
  9. - "src/web/Cine Studio/**"
  10. - "test/e2e/playwright/**"
  11. - ".github/workflows/e2e-playwright.yml"
  12. pull_request:
  13. paths:
  14. - "src/web/Cine Studio/**"
  15. - "test/e2e/playwright/**"
  16. - ".github/workflows/e2e-playwright.yml"
  17. permissions:
  18. contents: read
  19. jobs:
  20. playwright:
  21. runs-on: ubuntu-latest
  22. defaults:
  23. run:
  24. working-directory: test/e2e/playwright
  25. steps:
  26. - name: Checkout
  27. uses: actions/checkout@v4
  28. - name: Set up Node.js
  29. uses: actions/setup-node@v4
  30. with:
  31. node-version: "20"
  32. - name: Install dependencies
  33. run: npm install --no-audit --no-fund
  34. - name: Install Playwright Chromium (with OS deps)
  35. run: npx playwright install --with-deps chromium
  36. - name: Run E2E tests
  37. run: npm test