Make the runner fails *after* uploading the logs.

This commit is contained in:
Jean-Paul Chaput 2023-08-05 00:30:18 +02:00
parent 16d08d9a5e
commit 878f0bcc4b
1 changed files with 6 additions and 1 deletions

View File

@ -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