Skip to content

Commit e209017

Browse files
fix: update workflows
1 parent 61a124a commit e209017

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/ci-testing-deploy.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1544,14 +1544,13 @@ jobs:
15441544
]
15451545
runs-on: ubuntu-latest
15461546
steps:
1547-
- name: a previous unit-test job failed
1548-
if: ${{ contains(join(needs.*.result, ','), 'failure') }}
1547+
- name: a previous unit-test job failed or was cancelled
1548+
if: ${{ contains(join(needs.*.result, ','), 'failure') || contains(join(needs.*.result, ','), 'cancelled') }}
15491549
run: |
1550-
echo "::error title=ERROR::one of the unit-tests failed!"
1551-
echo "${{ join(needs.*.result, ',') }}"
1550+
echo "::error title=ERROR::one of the unit-tests failed or was cancelled!"
15521551
exit 1
15531552
- name: all the previous unit-tests were run successfully or skipped
1554-
if: ${{ !contains(join(needs.*.result, ','), 'failure') }}
1553+
if: ${{ !contains(join(needs.*.result, ','), 'failure') && !contains(join(needs.*.result, ','), 'cancelled') }}
15551554
run: echo "::notice All good!"
15561555

15571556
integration-test-webserver-01:
@@ -1876,13 +1875,13 @@ jobs:
18761875
]
18771876
runs-on: ubuntu-latest
18781877
steps:
1879-
- name: a previous integration-test job failed
1880-
if: ${{ contains(join(needs.*.result, ','), 'failure') }}
1878+
- name: a previous integration-test job failed or was cancelled
1879+
if: ${{ contains(join(needs.*.result, ','), 'failure') || contains(join(needs.*.result, ','), 'cancelled') }}
18811880
run: |
1882-
echo "::error title=ERROR::one of the integration-tests failed!"
1881+
echo "::error title=ERROR::one of the integration-tests failed or was cancelled!"
18831882
exit 1
18841883
- name: all the previous integration-tests were run successfully or skipped
1885-
if: ${{ !contains(join(needs.*.result, ','), 'failure') }}
1884+
if: ${{ !contains(join(needs.*.result, ','), 'failure') && !contains(join(needs.*.result, ','), 'cancelled') }}
18861885
run: echo "::notice All good!"
18871886

18881887
system-test-public-api:
@@ -2111,13 +2110,13 @@ jobs:
21112110
]
21122111
runs-on: ubuntu-latest
21132112
steps:
2114-
- name: a previous system-test job failed
2115-
if: ${{ contains(join(needs.*.result, ','), 'failure') }}
2113+
- name: a previous system-test job failed or was cancelled
2114+
if: ${{ contains(join(needs.*.result, ','), 'failure') || contains(join(needs.*.result, ','), 'cancelled') }}
21162115
run: |
2117-
echo "::error title=ERROR::one of the system-tests failed!"
2116+
echo "::error title=ERROR::one of the system-tests failed or was cancelled!"
21182117
exit 1
21192118
- name: all the previous system-tests were run successfully or skipped
2120-
if: ${{ !contains(join(needs.*.result, ','), 'failure') }}
2119+
if: ${{ !contains(join(needs.*.result, ','), 'failure') && !contains(join(needs.*.result, ','), 'cancelled') }}
21212120
run: echo "::notice All good!"
21222121

21232122
deploy:

0 commit comments

Comments
 (0)