🧪 E2E Tests #21982
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 🧪 E2E Tests | |
| on: | |
| deployment_status: | |
| jobs: | |
| e2e: | |
| if: ${{ github.event.deployment_status.state == 'success' }} | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "22.20.0" | |
| - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 | |
| name: Install pnpm | |
| - name: Enable pnpm (corepack) | |
| run: corepack enable | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Env | |
| id: env | |
| uses: socialgouv/kontinuous/.github/actions/env@v1 | |
| - name: Set env | |
| run: | | |
| echo "SITE_URL=${{ steps.env.outputs.subdomain }}.ovh.fabrique.social.gouv.fr" >> $GITHUB_ENV | |
| - name: Install Playwright Browsers | |
| run: pnpm playwright install --with-deps | |
| - name: Run Playwright tests | |
| run: | | |
| E2E_BASE_URL=${{ env.SITE_URL }} pnpm playwright test | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: playwright-report | |
| path: playwright-report/ |