-
Notifications
You must be signed in to change notification settings - Fork 88
45 lines (43 loc) · 1.1 KB
/
Copy pathe2e.yml
File metadata and controls
45 lines (43 loc) · 1.1 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
38
39
40
41
42
43
44
45
name: E2E (Playwright)
on:
pull_request_target:
paths:
- "frontend/**"
- ".github/workflows/e2e.yml"
push:
branches:
- main
paths:
- "frontend/**"
- ".github/workflows/e2e.yml"
jobs:
e2e:
name: Playwright E2E
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
allow-unsafe-pr-checkout: true
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: npm
cache-dependency-path: frontend/package-lock.json
- run: npm ci
- run: npx playwright install --with-deps chromium
- run: npm run build
- name: Run Playwright tests
run: npm run test:e2e
env:
CI: true
- name: Upload Playwright report
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-${{ github.sha }}
path: frontend/playwright-report/
retention-days: 14