Skip to content

Commit b72f81e

Browse files
committed
Only outsource test for mods due to long run-time
1 parent a47265e commit b72f81e

5 files changed

Lines changed: 264 additions & 288 deletions

File tree

.github/workflows/action_branch.yml

Lines changed: 62 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -54,26 +54,27 @@ jobs:
5454
has_refs: ${{ needs.configure.outputs.has_refs }}
5555
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
5656
flavour: base
57+
run_tests: true
5758
secrets:
5859
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
5960
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
6061

61-
base-test:
62-
needs:
63-
- params
64-
- configure
65-
- base
66-
uses: ./.github/workflows/zzz-reuse-test.yml
67-
with:
68-
enabled: true
69-
can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
70-
build_matrix: ${{ needs.configure.outputs.matrix_build }}
71-
has_refs: ${{ needs.configure.outputs.has_refs }}
72-
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
73-
flavour: base
74-
secrets:
75-
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
76-
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
62+
#base-test:
63+
# needs:
64+
# - params
65+
# - configure
66+
# - base
67+
# uses: ./.github/workflows/zzz-reuse-test.yml
68+
# with:
69+
# enabled: true
70+
# can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
71+
# build_matrix: ${{ needs.configure.outputs.matrix_build }}
72+
# has_refs: ${{ needs.configure.outputs.has_refs }}
73+
# artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
74+
# flavour: base
75+
# secrets:
76+
# dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
77+
# dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
7778

7879

7980
# -----------------------------------------------------------------------------------------------
@@ -84,7 +85,6 @@ jobs:
8485
- params
8586
- configure
8687
- base
87-
- base-test
8888
uses: ./.github/workflows/zzz-reuse-build.yml
8989
with:
9090
enabled: true
@@ -93,6 +93,7 @@ jobs:
9393
has_refs: ${{ needs.configure.outputs.has_refs }}
9494
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
9595
flavour: mods
96+
run_tests: false
9697
secrets:
9798
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
9899
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
@@ -102,7 +103,6 @@ jobs:
102103
- params
103104
- configure
104105
- base
105-
- base-test
106106
- mods
107107
uses: ./.github/workflows/zzz-reuse-test.yml
108108
with:
@@ -125,7 +125,6 @@ jobs:
125125
- params
126126
- configure
127127
- base
128-
- base-test
129128
- mods
130129
- mods-test
131130
uses: ./.github/workflows/zzz-reuse-build.yml
@@ -136,30 +135,31 @@ jobs:
136135
has_refs: ${{ needs.configure.outputs.has_refs }}
137136
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
138137
flavour: prod
138+
run_tests: true
139139
secrets:
140140
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
141141
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
142142

143-
prod-test:
144-
needs:
145-
- params
146-
- configure
147-
- base
148-
- base-test
149-
- mods
150-
- mods-test
151-
- prod
152-
uses: ./.github/workflows/zzz-reuse-test.yml
153-
with:
154-
enabled: true
155-
can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
156-
build_matrix: ${{ needs.configure.outputs.matrix_build }}
157-
has_refs: ${{ needs.configure.outputs.has_refs }}
158-
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
159-
flavour: prod
160-
secrets:
161-
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
162-
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
143+
#prod-test:
144+
# needs:
145+
# - params
146+
# - configure
147+
# - base
148+
# - base-test
149+
# - mods
150+
# - mods-test
151+
# - prod
152+
# uses: ./.github/workflows/zzz-reuse-test.yml
153+
# with:
154+
# enabled: true
155+
# can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
156+
# build_matrix: ${{ needs.configure.outputs.matrix_build }}
157+
# has_refs: ${{ needs.configure.outputs.has_refs }}
158+
# artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
159+
# flavour: prod
160+
# secrets:
161+
# dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
162+
# dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
163163

164164

165165
# -----------------------------------------------------------------------------------------------
@@ -170,11 +170,8 @@ jobs:
170170
- params
171171
- configure
172172
- base
173-
- base-test
174173
- mods
175-
- mods-test
176174
- prod
177-
- prod-test
178175
uses: ./.github/workflows/zzz-reuse-build.yml
179176
with:
180177
enabled: true
@@ -183,32 +180,33 @@ jobs:
183180
has_refs: ${{ needs.configure.outputs.has_refs }}
184181
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
185182
flavour: work
183+
run_tests: true
186184
secrets:
187185
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
188186
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
189187

190-
work-test:
191-
needs:
192-
- params
193-
- configure
194-
- base
195-
- base-test
196-
- mods
197-
- mods-test
198-
- prod
199-
- prod-test
200-
- work
201-
uses: ./.github/workflows/zzz-reuse-test.yml
202-
with:
203-
enabled: true
204-
can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
205-
build_matrix: ${{ needs.configure.outputs.matrix_build }}
206-
has_refs: ${{ needs.configure.outputs.has_refs }}
207-
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
208-
flavour: work
209-
secrets:
210-
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
211-
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
188+
#work-test:
189+
# needs:
190+
# - params
191+
# - configure
192+
# - base
193+
# - base-test
194+
# - mods
195+
# - mods-test
196+
# - prod
197+
# - prod-test
198+
# - work
199+
# uses: ./.github/workflows/zzz-reuse-test.yml
200+
# with:
201+
# enabled: true
202+
# can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
203+
# build_matrix: ${{ needs.configure.outputs.matrix_build }}
204+
# has_refs: ${{ needs.configure.outputs.has_refs }}
205+
# artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
206+
# flavour: work
207+
# secrets:
208+
# dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
209+
# dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
212210

213211

214212
# -----------------------------------------------------------------------------------------------
@@ -219,13 +217,9 @@ jobs:
219217
- params
220218
- configure
221219
- base
222-
- base-test
223220
- mods
224-
- mods-test
225221
- prod
226-
- prod-test
227222
- work
228-
- work-test
229223
uses: ./.github/workflows/zzz-reuse-deploy-images.yml
230224
with:
231225
enabled: true
@@ -246,13 +240,9 @@ jobs:
246240
- params
247241
- configure
248242
- base
249-
- base-test
250243
- mods
251-
- mods-test
252244
- prod
253-
- prod-test
254245
- work
255-
- work-test
256246
- push-image
257247
uses: ./.github/workflows/zzz-reuse-deploy-manifests.yml
258248
with:

0 commit comments

Comments
 (0)