Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
Allow test results to actually trigger github workflow pass/fail (#107)
Browse files Browse the repository at this point in the history
Fixes #106
Fixes an issue where the Github Action was not properly failing when tests failed. This propagates the test failure to the action itself.

Note that the result has to be stored after the first docker-compose call, because otherwise $? will be overwritten by the results of the second call (which should always be successful).
  • Loading branch information
zkagin authored Sep 30, 2020
1 parent de7033b commit 6b5d30b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash

docker-compose -f docker-compose.test.yml up --build --abort-on-container-exit --exit-code-from app
TEST_RESULT=$?
docker-compose -f docker-compose.test.yml down --volumes
exit $TEST_RESULT

0 comments on commit 6b5d30b

Please sign in to comment.