name: Playwright Tests on push on: pull_request: paths: - 'php/**' - 'Containers/mastercontainer/*.Caddyfile' - 'Containers/mastercontainer/start.sh' push: branches: - main paths: - 'php/**' - 'Containers/mastercontainer/*.Caddyfile' - 'Containers/mastercontainer/start.sh' concurrency: group: playwright-${{ github.head_ref || github.run_id }} cancel-in-progress: true env: BASE_URL: https://localhost:8080 jobs: test: timeout-minutes: 60 runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Run Playwright tests for initial setup run: ./php/tests/run.sh ./tests/initial-setup.spec.js - name: Run Playwright tests for backup restore run: ./php/tests/run.sh ./tests/restore-instance.spec.js - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 if: ${{ !cancelled() }} with: name: playwright-report path: php/tests/playwright-report/ retention-days: 14 overwrite: true