Skip to content

Commit

Permalink
Ensure the CI complete step fails when tests fail
Browse files Browse the repository at this point in the history
  • Loading branch information
neilmayhew authored and lehins committed Apr 26, 2024
1 parent f64e29f commit 58d3de4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/haskell.yml
Expand Up @@ -249,8 +249,18 @@ jobs:
name: Tests completed
runs-on: ubuntu-latest
needs: test
if: always()
steps:
- run: echo 'All tests completed successfully'
- run: |
case ${{ needs.test.result }} in
failure)
echo 'Some tests failed'
false;;
success)
echo 'All tests completed successfully';;
*)
echo 'Tests were ${{ needs.test.result }}';;
esac
fourmolu:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 58d3de4

Please sign in to comment.