Skip to content

Commit 6793a75

Browse files
committed
test: add results step to not need manual update of required checks when changing the matrix job
1 parent 5f177af commit 6793a75

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

.github/workflows/test-bank2ynab-converter.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,17 @@ jobs:
2323
yarn start
2424
env:
2525
CI: true
26+
27+
# See https://github.com/orgs/community/discussions/26822#discussioncomment-5122101
28+
results-bank2ynab-converter:
29+
if: ${{ always() }}
30+
runs-on: ubuntu-latest
31+
needs: [build]
32+
steps:
33+
- run: exit 1
34+
# see https://stackoverflow.com/a/67532120/4907315
35+
if: >-
36+
${{
37+
contains(needs.*.result, 'failure')
38+
|| contains(needs.*.result, 'cancelled')
39+
}}

.github/workflows/test-parsers.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,17 @@ jobs:
2828
uses: codecov/[email protected]
2929
with:
3030
token: ${{ secrets.CODECOV_TOKEN }}
31+
32+
# See https://github.com/orgs/community/discussions/26822#discussioncomment-5122101
33+
results-parsers:
34+
if: ${{ always() }}
35+
runs-on: ubuntu-latest
36+
needs: [build]
37+
steps:
38+
- run: exit 1
39+
# see https://stackoverflow.com/a/67532120/4907315
40+
if: >-
41+
${{
42+
contains(needs.*.result, 'failure')
43+
|| contains(needs.*.result, 'cancelled')
44+
}}

.github/workflows/test-web-app.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,17 @@ jobs:
2323
yarn build
2424
env:
2525
CI: true
26+
27+
# See https://github.com/orgs/community/discussions/26822#discussioncomment-5122101
28+
results-web-app:
29+
if: ${{ always() }}
30+
runs-on: ubuntu-latest
31+
needs: [build]
32+
steps:
33+
- run: exit 1
34+
# see https://stackoverflow.com/a/67532120/4907315
35+
if: >-
36+
${{
37+
contains(needs.*.result, 'failure')
38+
|| contains(needs.*.result, 'cancelled')
39+
}}

0 commit comments

Comments
 (0)