From 878f0bcc4b90026f16a6aeea8b85d93021941b76 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Sat, 5 Aug 2023 00:30:18 +0200 Subject: [PATCH] Make the runner fails *after* uploading the logs. --- .github/workflows/regression.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/regression.yml b/.github/workflows/regression.yml index 83bf6964..781adbeb 100644 --- a/.github/workflows/regression.yml +++ b/.github/workflows/regression.yml @@ -56,10 +56,15 @@ jobs: run: | cd ${{ github.workspace }}/coriolis-2.x/src/alliance-check-toolkit/benchs eval `${{ github.workspace }}/coriolis-2.x/Linux.x86_64/Release.Shared/install/etc/coriolis2/coriolisEnv.py` - ../bin/gopy.sh + ../bin/gopy.sh --github-runner - name: Archive code coverage results uses: actions/upload-artifact@v3 with: name: design-set-full-logs path: ${{ github.workspace }}/coriolis-2.x/src/alliance-check-toolkit/benchs/doit-gopy.log retention-days: 5 + - name: Make the runner fail *after* the log has been saved. + run: | + if [ -f ${{ github.workspace }}/coriolis-2.x/src/alliance-check-toolkit/benchs/doit-gopy.failed ]; then + exit 1 + fi