Skip to content

Commit

Permalink
test: add results step to not need manual update of required checks w…
Browse files Browse the repository at this point in the history
…hen changing the matrix job
  • Loading branch information
morremeyer committed Jun 30, 2023
1 parent 008a9ea commit 0956f0a
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test-bank2ynab-converter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,17 @@ jobs:
yarn start
env:
CI: true

# See https://github.com/orgs/community/discussions/26822#discussioncomment-5122101
results-bank2ynab-converter:
if: ${{ always() }}
runs-on: ubuntu-latest
needs: [build]
steps:
- run: exit 1
# see https://stackoverflow.com/a/67532120/4907315
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
}}
14 changes: 14 additions & 0 deletions .github/workflows/test-parsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,17 @@ jobs:
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}

# See https://github.com/orgs/community/discussions/26822#discussioncomment-5122101
results-parsers:
if: ${{ always() }}
runs-on: ubuntu-latest
needs: [build]
steps:
- run: exit 1
# see https://stackoverflow.com/a/67532120/4907315
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
}}
14 changes: 14 additions & 0 deletions .github/workflows/test-web-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,17 @@ jobs:
yarn build
env:
CI: true

# See https://github.com/orgs/community/discussions/26822#discussioncomment-5122101
results-web-app:
if: ${{ always() }}
runs-on: ubuntu-latest
needs: [build]
steps:
- run: exit 1
# see https://stackoverflow.com/a/67532120/4907315
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
}}

0 comments on commit 0956f0a

Please sign in to comment.