-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (53 loc) · 1.54 KB
/
fractally.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
name: Build
on:
push:
branches:
- main
- "test/*"
pull_request:
types: [assigned, opened, synchronize, reopened, labeled]
paths:
- ".github/workflows/fractally.yml"
- "projects/fractally/**"
jobs:
run-e2e:
name: Run E2E Tests
runs-on: ubuntu-latest
steps:
- name: ✅ Checkout code
uses: actions/checkout@v2
- uses: pnpm/[email protected]
with:
version: 6.28.0
run_install: |
- cwd: projects/fractally
args: [--frozen-lockfile, --strict-peer-dependencies]
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
src:
- ".github/workflows/fractally.yml"
- "projects/fractally/**"
- name: 🛠 Build and Start WebApp
if: steps.filter.outputs.src == 'true'
working-directory: ./projects/fractally
run: |
export DFUSE_PREVENT_CONNECT=1
export NODE_ENV=test
env
pnpm build
pnpm start &
- name: 🧪 Run E2E
if: steps.filter.outputs.src == 'true'
working-directory: ./projects/fractally
run: |
pnpm test
- name: 🎥 Upload Cypress Results
if: always() && steps.filter.outputs.src == 'true'
uses: actions/upload-artifact@v2
with:
name: Cypress E2E Videos and Screenshots
path: |
./projects/fractally/apps/webapp/cypress/screenshots
./projects/fractally/apps/webapp/cypress/videos