File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 99 integration-tests :
1010 name : Run integration tests
1111 runs-on : ubuntu-latest
12+ env :
13+ EXIT_STATUS : 0
1214 steps :
1315 - name : Clone Repository
1416 uses : actions/checkout@v3
3941 run : |
4042 timestamp=$(date +'%Y%m%d%H%M')
4143 report_filename="${timestamp}_cli_test_report.xml"
42- status=0
4344 if ! pytest tests/integration --disable-warnings --junitxml="${report_filename}"; then
44- echo "Tests failed, but attempting to upload results anyway"
45+ echo "EXIT_STATUS=1" >> $GITHUB_ENV
4546 fi
4647 env :
4748 LINODE_CLI_TOKEN : ${{ secrets.LINODE_TOKEN }}
6768 env :
6869 LINODE_CLI_TOKEN : ${{ secrets.SHARED_DX_TOKEN }}
6970 LINODE_CLI_OBJ_ACCESS_KEY : ${{ secrets.LINODE_CLI_OBJ_ACCESS_KEY }}
70- LINODE_CLI_OBJ_SECRET_KEY : ${{ secrets.LINODE_CLI_OBJ_SECRET_KEY }}
71+ LINODE_CLI_OBJ_SECRET_KEY : ${{ secrets.LINODE_CLI_OBJ_SECRET_KEY }}
72+
73+ - name : Test Execution Status Handler
74+ run : |
75+ if [[ "$EXIT_STATUS" != 0 ]]; then
76+ echo "Test execution contains failure(s)"
77+ exit $EXIT_STATUS
78+ else
79+ echo "Tests passed!"
80+ fi
You can’t perform that action at this time.
0 commit comments