From 70f8b7986e7213b8d02f7cf656d1636729272e63 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Fri, 25 Sep 2026 23:05:16 +0100 Subject: [PATCH] View the test results --- .forgejo/workflows/buildAndTest.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.forgejo/workflows/buildAndTest.yml b/.forgejo/workflows/buildAndTest.yml index cf4100eda..140472838 100644 --- a/.forgejo/workflows/buildAndTest.yml +++ b/.forgejo/workflows/buildAndTest.yml @@ -50,9 +50,20 @@ jobs: echo "🏗️ Building the solution..." cd /src/_src && dotnet build --verbosity normal - name: Test + artifacts: + name: test-results + path: test-results.html run: | echo "🚀 Lancement des tests..." cd /src/_src && dotnet test \ --report-xunit \ --report-xunit-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