From eb347e690056bbd76fda776fc609724d95d65867 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sun, 11 Oct 2026 06:12:41 +0100 Subject: [PATCH] upload test resultes, in case of failure --- .github/workflows/docker-publish-backend.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-publish-backend.yml b/.github/workflows/docker-publish-backend.yml index 341ba5a05..2d84b767f 100644 --- a/.github/workflows/docker-publish-backend.yml +++ b/.github/workflows/docker-publish-backend.yml @@ -9,7 +9,6 @@ on: jobs: production-deploy: runs-on: ubuntu-26.04 - steps: # 1. Récupération du code - name: Check out the repo @@ -32,7 +31,17 @@ jobs: - name: Workloads restore run: dotnet workload restore - name: Test - run: make test >/dev/null + env: + TEST_FAILED: "" + run: make test || export TEST_FAILED=$? + - uses: actions/upload-artifact@v7 + with: + name: my-artifact + path: test-reports/**/* + - name: Fail if tests failed + if: ${{ env.TEST_FAILED != '' && env.TEST_FAILED != '0' }} + run: exit $TEST_FAILED + # 4. Build et Push de l'image de production finale - name: Build and push production image uses: docker/build-push-action@v7