diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 4fbabed..58dc188 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -41,6 +41,12 @@ jobs: - name: Build solution run: dotnet build $SOLUTION_PATH --no-restore --configuration Release - # Step 5: Run Unit Tests (xUnit) + # Step 5: Run Unit Tests (xUnit) with diagnostic verbosity - name: Run unit tests - run: dotnet test $TEST_PROJECT_PATH --no-build --configuration Release --verbosity normal \ No newline at end of file + run: dotnet test $TEST_PROJECT_PATH --no-build --configuration Release --logger "trx;LogFileName=test_results.trx" --verbosity diagnostic + # Step 6: Upload Test Results as Artifact + - name: Upload Test Results as Artifact + uses: actions/upload-artifact@v3 + with: + name: Test Results + path: ${{ github.workspace }}/SimpleAPI.Test/bin/Release/net8.0/test_results.trx \ No newline at end of file