Commit fdb0e48 1 parent 9fc834f commit fdb0e48 Copy full SHA for fdb0e48
File tree 3 files changed +103
-42
lines changed
3 files changed +103
-42
lines changed Original file line number Diff line number Diff line change
1
+ name : Admin UI Cypress Tests
2
+
3
+ on :
4
+ pull_request :
5
+ paths :
6
+ - " clients/admin-ui/**"
7
+ - " .github/workflows/cypress_admin-ui.yml"
8
+ push :
9
+ branches :
10
+ - " main"
11
+ - " release-**"
12
+
13
+ env :
14
+ CI : true
15
+
16
+ jobs :
17
+ Admin-UI-Cypress :
18
+ runs-on : ubuntu-latest
19
+ defaults :
20
+ run :
21
+ working-directory : clients
22
+ steps :
23
+ - name : Checkout
24
+ uses : actions/checkout@v4
25
+
26
+ - name : Use Node.js 20.x
27
+ uses : actions/setup-node@v4
28
+ with :
29
+ node-version : 20.x
30
+
31
+ - name : Install dependencies
32
+ run : npm install
33
+
34
+ - name : Build FidesJS
35
+ working-directory : clients/fides-js
36
+ run : npm run build
37
+
38
+ - name : Cypress Admin UI E2E Tests
39
+ uses : cypress-io/github-action@v6
40
+ with :
41
+ working-directory : clients/admin-ui
42
+ install : false
43
+ start : npm run cy:start
44
+ wait-on : " http://localhost:3000"
45
+ wait-on-timeout : 180
46
+
47
+ - uses : actions/upload-artifact@v4
48
+ if : failure()
49
+ with :
50
+ name : cypress-videos-admin-ui
51
+ path : /home/runner/work/fides/fides/clients/admin-ui/cypress/videos/*.mp4
Original file line number Diff line number Diff line change
1
+ name : Privacy Center/FidesJS Cypress Tests
2
+
3
+ on :
4
+ pull_request :
5
+ paths :
6
+ - " clients/privacy-center/**"
7
+ - " clients/fides-js/**"
8
+ - " .github/workflows/cypress_privacy-center.yml"
9
+ push :
10
+ branches :
11
+ - " main"
12
+ - " release-**"
13
+
14
+ env :
15
+ CI : true
16
+
17
+ jobs :
18
+ Privacy-Center-Cypress :
19
+ runs-on : ubuntu-latest
20
+ defaults :
21
+ run :
22
+ working-directory : clients
23
+ steps :
24
+ - name : Checkout
25
+ uses : actions/checkout@v4
26
+
27
+ - name : Use Node.js 20.x
28
+ uses : actions/setup-node@v4
29
+ with :
30
+ node-version : 20.x
31
+
32
+ - name : Install dependencies
33
+ run : npm install
34
+
35
+ - name : Build FidesJS
36
+ working-directory : clients/fides-js
37
+ run : npm run build
38
+
39
+ - name : Cypress Privacy Center E2E Tests
40
+ uses : cypress-io/github-action@v6
41
+ with :
42
+ working-directory : clients/privacy-center
43
+ install : false
44
+ start : npm run cy:start
45
+ wait-on : " http://localhost:3001"
46
+ wait-on-timeout : 180
47
+
48
+ - uses : actions/upload-artifact@v4
49
+ if : failure()
50
+ with :
51
+ name : cypress-videos-privacy-center
52
+ path : /home/runner/work/fides/fides/clients/privacy-center/cypress/videos/*.mp4
Original file line number Diff line number Diff line change 51
51
- name : Unit test (${{ matrix.clients }})
52
52
working-directory : clients/${{ matrix.clients }}
53
53
run : npm run test:ci
54
-
55
- Clients-Cypress :
56
- runs-on : ubuntu-latest
57
- strategy :
58
- matrix :
59
- node-version : [20.x]
60
- clients :
61
- - " admin-ui"
62
- - " privacy-center"
63
- defaults :
64
- run :
65
- working-directory : clients
66
- steps :
67
- - name : Checkout
68
- uses : actions/checkout@v4
69
-
70
- - name : Use Node.js ${{ matrix.node-version }}
71
- uses : actions/setup-node@v4
72
- with :
73
- node-version : ${{ matrix.node-version }}
74
-
75
- - name : Install dependencies
76
- run : npm install
77
-
78
- - name : Build FidesJS
79
- working-directory : clients/fides-js
80
- run : npm run build
81
-
82
- - name : Cypress E2E Tests (${{ matrix.clients }})
83
- uses : cypress-io/github-action@v6
84
- with :
85
- working-directory : clients/${{ matrix.clients }}
86
- install : false
87
- start : npm run cy:start
88
- wait-on : " http://localhost:${{ matrix.clients == 'privacy-center' && 3001 || 3000 }}"
89
- wait-on-timeout : 180
90
-
91
- - uses : actions/upload-artifact@v4
92
- if : failure()
93
- with :
94
- name : cypress-videos-${{ matrix.clients }}
95
- path : /home/runner/work/fides/fides/clients/${{ matrix.clients }}/cypress/videos/*.mp4
You can’t perform that action at this time.
0 commit comments