-
-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (54 loc) · 1.7 KB
/
Copy pathe2e.yml
File metadata and controls
68 lines (54 loc) · 1.7 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: E2E Tests
permissions:
contents: read
on:
pull_request:
branches: [main]
concurrency:
group: e2e-${{ github.head_ref }}
cancel-in-progress: true
jobs:
e2e:
name: Playwright E2E
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: '20'
- name: Setup Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
- name: Install root dependencies
run: npm ci
- name: Install backend dependencies
run: npm ci
working-directory: backend
- name: Install frontend dependencies
run: npm ci
working-directory: frontend
- name: Install feed-proxy dependencies
run: bun install
working-directory: feed-proxy
- name: Install Playwright browsers
run: npx playwright install chromium
- name: Create backend .dev.vars
run: |
cat > .dev.vars <<'EOF'
FRONTEND_URL=http://127.0.0.1:5173
ALLOWED_ORIGINS=http://127.0.0.1:5173
FEED_PROXY_URL=http://127.0.0.1:3000
FEED_PROXY_SECRET=test-e2e-secret
E2E_TEST_MODE=true
EOF
working-directory: backend
- name: Run E2E tests
run: npx playwright test
- name: Upload Playwright report
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 14