Skip to content

Commit

Permalink
Only retry failed tests if the tests ran and failed
Browse files Browse the repository at this point in the history
  • Loading branch information
angelikatyborska committed Jan 3, 2024
1 parent fc4407d commit c5c78f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ jobs:
- run: mix deps.get
- run: mix compile
- run: mix chromic_pdf.warm_up
- run: mix test || mix test --failed || mix test --failed
# only retry failed tests if the tests ran and actually failed (exit status 2), and don't retry if e.g. they didn't compile
- run: mix test || if [[ $? = 2 ]]; then mix test --failed || if [[ $? = 2 ]]; then mix test --failed; else false; fi; else false; fi

0 comments on commit c5c78f4

Please sign in to comment.