Skip to content

Commit

Permalink
properly fail the "Test Suite" check when any inputs are failing
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Aug 12, 2024
1 parent c31ab2a commit 18644e9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,12 @@ jobs:
run: bundle exec rake parallel_spec

tests:
if: always()
needs: unit
runs-on: ubuntu-24.04
name: Test suite
steps:
- run: echo Test suite completed
working-directory: '.'
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
8 changes: 5 additions & 3 deletions .github/workflows/beaker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,14 @@ jobs:
env: ${{ matrix.env }}

tests:
if: always()
needs:
- unit
- acceptance
runs-on: ubuntu-24.04
name: Test suite
steps:
- run: echo Test suite completed
# explicitly run at the root dir. In case people set working-directory this will otherwise fail (because this jobs doesn't clone the repo and the subdir doesn't exist)
working-directory: '.'
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}

0 comments on commit 18644e9

Please sign in to comment.