upload test resultes, in case of failure
This commit is contained in:
parent
c34941a4b9
commit
eb347e6900
1 changed files with 11 additions and 2 deletions
13
.github/workflows/docker-publish-backend.yml
vendored
13
.github/workflows/docker-publish-backend.yml
vendored
|
|
@ -9,7 +9,6 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
production-deploy:
|
production-deploy:
|
||||||
runs-on: ubuntu-26.04
|
runs-on: ubuntu-26.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# 1. Récupération du code
|
# 1. Récupération du code
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
|
|
@ -32,7 +31,17 @@ jobs:
|
||||||
- name: Workloads restore
|
- name: Workloads restore
|
||||||
run: dotnet workload restore
|
run: dotnet workload restore
|
||||||
- name: Test
|
- 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
|
# 4. Build et Push de l'image de production finale
|
||||||
- name: Build and push production image
|
- name: Build and push production image
|
||||||
uses: docker/build-push-action@v7
|
uses: docker/build-push-action@v7
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue