View the test results
All checks were successful
Dotnet build and test / build (pull_request) Successful in 17m5s
All checks were successful
Dotnet build and test / build (pull_request) Successful in 17m5s
This commit is contained in:
parent
1d12166611
commit
70f8b7986e
1 changed files with 11 additions and 0 deletions
|
|
@ -50,9 +50,20 @@ jobs:
|
||||||
echo "🏗️ Building the solution..."
|
echo "🏗️ Building the solution..."
|
||||||
cd /src/_src && dotnet build --verbosity normal
|
cd /src/_src && dotnet build --verbosity normal
|
||||||
- name: Test
|
- name: Test
|
||||||
|
artifacts:
|
||||||
|
name: test-results
|
||||||
|
path: test-results.html
|
||||||
run: |
|
run: |
|
||||||
echo "🚀 Lancement des tests..."
|
echo "🚀 Lancement des tests..."
|
||||||
cd /src/_src && dotnet test \
|
cd /src/_src && dotnet test \
|
||||||
--report-xunit \
|
--report-xunit \
|
||||||
--report-xunit-html \
|
--report-xunit-html \
|
||||||
--report-xunit-html-filename "test-results.html"
|
--report-xunit-html-filename "test-results.html"
|
||||||
|
TEST_EXIT_CODE=$?
|
||||||
|
echo "Test exit code: $TEST_EXIT_CODE"
|
||||||
|
if [ $TEST_EXIT_CODE -ne 0 ]; then
|
||||||
|
echo "❌ Tests failed with exit code $TEST_EXIT_CODE"
|
||||||
|
exit $TEST_EXIT_CODE
|
||||||
|
else
|
||||||
|
echo "✅ All tests passed successfully."
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue