-
Notifications
You must be signed in to change notification settings - Fork 20
68 lines (55 loc) · 2 KB
/
TEST_E2E.yml
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: End-to-End Tests
on:
push:
branches: '*'
pull_request:
branches: '*'
jobs:
test:
timeout-minutes: 10
runs-on: gs65-mfarabi
steps:
- name: 🛎️ Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0 # All history for branches and tags
- name: Fetch main branch
run: git fetch origin main # Explicitly fetch the 'main' branch to ensure it's available
- name: 📦 Install Dependencies
run: pnpm i
# - name: ⚗️ Run E2E Tests for Affected Projects
# run: pnpm nx affected -t e2e --parallel=2 --reporter=html --base=origin/main --head=HEAD --verbose
- name: 💀 Run Docs E2E Tests
run: pnpm nx e2e docs-e2e --reporter=html --verbose
- name: 📄 Upload Docs E2E Playwright Report
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-docs-e2e
path: playwright-report/**/*
retention-days: 30
# - name: 💀 Run Website E2E Tests
# run: pnpm nx e2e website-e2e --reporter=html --verbose
# - name: 📄 Upload Website E2E Playwright Report
# uses: actions/upload-artifact@v4
# if: always()
# with:
# name: playwright-report-website-e2e
# path: playwright-report/**/*
# retention-days: 30
# - name: 💀 Run Portal E2E Tests
# env:
# DATABASE_URL: ${{ secrets.DATABASE_URL }}
# AUTH_SECRET: ${{ secrets.AUTH_SECRET }}
# GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
# GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
# run: pnpm nx run portal-e2e:e2e --reporter=html --verbose
# - name: 📄 Upload Portal E2E Playwright Report
# uses: actions/upload-artifact@v4
# if: always()
# with:
# name: playwright-report-portal-e2e
# path: playwright-report/**/*
# retention-days: 30
- name: 💰 Profit
run: echo 🐞