-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 1.12 KB
/
e2e.yaml
File metadata and controls
37 lines (35 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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/