-
Notifications
You must be signed in to change notification settings - Fork 21
117 lines (113 loc) · 2.96 KB
/
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: E2E
on: pull_request
# START PLAYWRIGHT SPECIFIC CONFIG
jobs:
prepare_app:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.43.0-focal
steps:
- uses: actions/checkout@master
- name: Copy envs
run: cp .env.dist .env
- name: Install root dependencies
run: npm ci
- name: Build ci
run: npm run build:ci
- name: Upload build
uses: actions/upload-artifact@v3
with:
name: build
path: build
e2e_chrome:
needs: prepare_app
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.43.0-focal
defaults:
run:
working-directory: e2e
steps:
- uses: actions/checkout@master
- name: Download build
uses: actions/download-artifact@v3
with:
name: build
path: build
- name: Copy e2e envs
run: cp .env.dist .env
- name: Install e2e dependencies
run: npm install
- name: Run build and tests
run: npm run test:chrome
- name: Upload test results
uses: actions/upload-artifact@v3
if: always()
with:
name: e2e-chrome-artifacts
path: |
e2e/test-report/
e2e/test-results/
retention-days: 30
e2e_firefox:
needs: prepare_app
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.43.0-focal
options: --user 1001
defaults:
run:
working-directory: e2e
steps:
- uses: actions/checkout@master
- name: Download build
uses: actions/download-artifact@v3
with:
name: build
path: build
- name: Copy e2e envs
run: cp .env.dist .env
- name: Install e2e dependencies
run: npm install
- name: Run build and tests
run: npm run test:firefox
- name: Upload test results
uses: actions/upload-artifact@v3
if: always()
with:
name: e2e-firefox-artifacts
path: |
e2e/test-report/
e2e/test-results/
retention-days: 30
e2e_safari:
needs: prepare_app
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.43.0-focal
defaults:
run:
working-directory: e2e
steps:
- uses: actions/checkout@master
- name: Download build
uses: actions/download-artifact@v3
with:
name: build
path: build
- name: Copy e2e envs
run: cp .env.dist .env
- name: Install e2e dependencies
run: npm install
- name: Run build and tests
run: npm run test:safari
- name: Upload test results
uses: actions/upload-artifact@v3
if: always()
with:
name: e2e-safari-artifacts
path: |
e2e/test-report/
e2e/test-results/
retention-days: 30
# END PLAYWRIGHT SPECIFIC CONFIG