Skip to content

Commit b777ce1

Browse files
committed
fixup! Some fixes after rebase and adding tests
Signed-off-by: Jakub Stejskal <xstejs24@gmail.com>
1 parent 28b5f18 commit b777ce1

File tree

1 file changed

+37
-32
lines changed

1 file changed

+37
-32
lines changed

.github/workflows/system-tests.yml

Lines changed: 37 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,12 @@ jobs:
9292
needs:
9393
- parse-params
9494
- check-rights
95-
if: ${{
96-
always() &&
97-
needs.parse-params.outputs.shouldRun == 'true' &&
98-
(needs.check-rights.result == 'success' || github.event_name == 'pull_request')
99-
}}
95+
if: |-
96+
${{
97+
always() &&
98+
needs.parse-params.outputs.shouldRun == 'true' &&
99+
(needs.check-rights.result == 'success' || github.event_name == 'pull_request')
100+
}}
100101
runs-on: ubuntu-latest
101102
permissions:
102103
contents: read
@@ -155,12 +156,13 @@ jobs:
155156
- check-rights
156157
- generate-matrix
157158
# Run only if properly triggered, permissions check passed, matrix is valid, and the run is not for release (already built images)
158-
if: ${{
159-
always() &&needs.parse-params.outputs.shouldRun == 'true' &&
160-
(needs.check-rights.result == 'success' || github.event_name == 'pull_request') &&
161-
needs.generate-matrix.outputs.isValid == 'true' &&
162-
needs.parse-params.outputs.releaseVersion == 'latest'
163-
}}
159+
if: |-
160+
${{
161+
always() &&needs.parse-params.outputs.shouldRun == 'true' &&
162+
(needs.check-rights.result == 'success' || github.event_name == 'pull_request') &&
163+
needs.generate-matrix.outputs.isValid == 'true' &&
164+
needs.parse-params.outputs.releaseVersion == 'latest'
165+
}}
164166
runs-on: oracle-2cpu-8gb-arm64
165167
steps:
166168
- uses: actions/checkout@v5
@@ -179,13 +181,14 @@ jobs:
179181
- validate-matrix
180182
- build-artifacts
181183
# Run only if properly triggered, permissions check passed, matrix is valid, and the run is not for release (already built images)
182-
if: ${{
183-
always() &&needs.parse-params.outputs.shouldRun == 'true' &&
184-
(needs.check-rights.result == 'success' || github.event_name == 'pull_request')&&
185-
needs.validate-matrix.outputs.isValid == 'true' &&
186-
needs.parse-params.outputs.releaseVersion == 'latest' &&
187-
needs.build-artifacts.result != 'failure'
188-
}}
184+
if: |-
185+
${{
186+
always() &&needs.parse-params.outputs.shouldRun == 'true' &&
187+
(needs.check-rights.result == 'success' || github.event_name == 'pull_request')&&
188+
needs.validate-matrix.outputs.isValid == 'true' &&
189+
needs.parse-params.outputs.releaseVersion == 'latest' &&
190+
needs.build-artifacts.result != 'failure'
191+
}}
189192
strategy:
190193
matrix:
191194
architecture: [amd64, arm64]
@@ -208,14 +211,15 @@ jobs:
208211
- build-artifacts
209212
- build-images
210213
# Run if properly triggered, permissions check passed, matrix is valid, and build jobs succeeded or were skipped
211-
if: ${{
212-
always() &&
213-
needs.parse-params.outputs.shouldRun == 'true' &&
214-
(needs.check-rights.result == 'success' || github.event_name == 'pull_request')&&
215-
needs.validate-matrix.outputs.isValid == 'true' &&
216-
needs.build-images.result != 'failure' &&
217-
needs.build-artifacts.result != 'failure'
218-
}}
214+
if: |-
215+
${{
216+
always() &&
217+
needs.parse-params.outputs.shouldRun == 'true' &&
218+
(needs.check-rights.result == 'success' || github.event_name == 'pull_request')&&
219+
needs.validate-matrix.outputs.isValid == 'true' &&
220+
needs.build-images.result != 'failure' &&
221+
needs.build-artifacts.result != 'failure'
222+
}}
219223
# Job needs write rights for setting statuses on pull-requests
220224
permissions:
221225
contents: read
@@ -244,12 +248,13 @@ jobs:
244248
- parse-params
245249
- check-rights
246250
- run-tests
247-
if: ${{
248-
always() &&
249-
needs.parse-params.outputs.shouldRun == 'true' &&
250-
needs.check-rights.result == 'success' &&
251-
github.event_name != 'pull_request'
252-
}}
251+
if: |-
252+
${{
253+
always() &&
254+
needs.parse-params.outputs.shouldRun == 'true' &&
255+
needs.check-rights.result == 'success' &&
256+
github.event_name != 'pull_request'
257+
}}
253258
runs-on: ubuntu-latest
254259
permissions:
255260
contents: read

0 commit comments

Comments
 (0)