1
1
name : ✅ E2E Tests
2
- run-name : >
3
- E2E • ${{ github.event_name == 'pull_request_review'
4
- && format('PR #{0} {1}', github.event.pull_request.number, github.event.pull_request.title)
5
- || github.ref_name }} • by ${{ github.actor }}
6
2
7
3
on :
8
- pull_request_review :
9
- types : [submitted]
10
-
11
4
workflow_dispatch :
12
5
inputs :
13
6
debug :
@@ -21,43 +14,24 @@ permissions:
21
14
22
15
# Cancel a previous run workflow
23
16
concurrency :
24
- group : ${{ github.workflow }}-${{ github.event.pull_request.head.sha || github. ref }}-e2e
25
- cancel-in-progress : false
17
+ group : ${{ github.workflow }}-${{ github.ref }}-e2e
18
+ cancel-in-progress : true
26
19
27
20
jobs :
28
- approval-dedupe :
29
- uses : ./.github/workflows/approval-dedupe.yml
30
- secrets : inherit
31
- with :
32
- workflow_filename : tests-e2e.yml
33
- require_approval : true
34
- allow_workflow_dispatch : true
35
-
36
21
build-docker :
37
- needs : approval-dedupe
38
- if : needs.approval-dedupe.outputs.mode == 'run'
39
22
uses : ./.github/workflows/pipeline-build-docker.yml
40
23
secrets : inherit
41
24
with :
42
25
debug : ${{ inputs.debug || false }}
43
26
for_e2e_tests : true
44
27
45
28
build-appimage :
46
- needs : approval-dedupe
47
- if : needs.approval-dedupe.outputs.mode == 'run'
48
29
uses : ./.github/workflows/pipeline-build-linux.yml
49
30
secrets : inherit
50
31
with :
51
32
target : build_linux_appimage_x64
52
33
debug : ${{ inputs.debug || false }}
53
34
54
- builds-complete :
55
- needs : [build-docker, build-appimage]
56
- runs-on : ubuntu-latest
57
- steps :
58
- - name : Both builds finished
59
- run : echo "Docker and AppImage builds completed"
60
-
61
35
e2e-docker-tests-smoke :
62
36
name : " E2E: Smoke (Docker)"
63
37
needs : build-docker
@@ -83,25 +57,23 @@ jobs:
83
57
debug : ${{ inputs.debug || false }}
84
58
85
59
tests-e2e-playwright :
86
- needs : builds-complete
60
+ needs : build-docker
87
61
uses : ./.github/workflows/tests-e2e-playwright.yml
88
62
secrets : inherit
89
63
with :
90
64
debug : ${{ inputs.debug || false }}
91
65
92
66
e2e-appimage-tests :
93
- needs : builds-complete
67
+ needs : build-appimage
94
68
uses : ./.github/workflows/tests-e2e-appimage.yml
95
69
secrets : inherit
96
70
with :
97
71
debug : ${{ inputs.debug || false }}
98
72
99
73
clean :
100
74
uses : ./.github/workflows/clean-deployments.yml
101
- if : always() && needs.approval-dedupe.outputs.mode == 'run'
102
75
needs :
103
76
[
104
- approval-dedupe,
105
77
e2e-docker-tests-smoke,
106
78
e2e-docker-tests-critical-path,
107
79
e2e-docker-tests-regression,
@@ -112,10 +84,8 @@ jobs:
112
84
# Remove artifacts from github actions
113
85
remove-artifacts :
114
86
name : Remove artifacts
115
- if : needs.approval-dedupe.outputs.mode == 'run'
116
87
needs :
117
88
[
118
- approval-dedupe,
119
89
e2e-docker-tests-smoke,
120
90
e2e-docker-tests-critical-path,
121
91
e2e-docker-tests-regression,
0 commit comments