name: E2E Tests on: pull_request: branches: [ main, develop ] push: branches: [ main, develop ] workflow_dispatch: jobs: e2e: runs-on: ubuntu-latest timeout-minutes: 60 steps: - uses: actions/checkout@v3 - uses: pnpm/action-setup@v2 with: version: 9 - uses: actions/setup-node@v3 with: node-version: '18' cache: 'pnpm' - name: Install dependencies run: pnpm install - name: Install Playwright browsers run: pnpm exec playwright install --with-deps - name: Build application run: pnpm build - name: Run E2E tests run: pnpm test:e2e env: PLAYWRIGHT_BASE_URL: http://localhost:3000 - name: Upload test results if: always() uses: actions/upload-artifact@v3 with: name: playwright-report path: playwright-report/ retention-days: 30