From e13d44dda109b1ce2b11907110872fa24890d8f3 Mon Sep 17 00:00:00 2001 From: Tig Date: Sun, 7 Jul 2024 15:24:46 -0600 Subject: [PATCH] upload logs after test --- .github/workflows/dotnet-core.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/dotnet-core.yml b/.github/workflows/dotnet-core.yml index 23e4fd542..6226f4f1a 100644 --- a/.github/workflows/dotnet-core.yml +++ b/.github/workflows/dotnet-core.yml @@ -32,12 +32,19 @@ jobs: - name: Build Debug run: dotnet build --configuration Debug --no-restore + # See https://github.com/microsoft/vstest/issues/2952 for why the --blame stuff below is needed. + # Without it, the test runner crashes on ubuntu (but not Windows)/ - name: Test run: | sed -i 's/"stopOnFail": false/"stopOnFail": true/g' UnitTests/xunit.runner.json dotnet test --verbosity normal --collect:"XPlat Code Coverage" --settings UnitTests/coverlet.runsettings --blame --diag:logs/logs.txt --blame-hang --blame-hang-timeout 60s mv -v UnitTests/TestResults/*/*.* UnitTests/TestResults/ + - uses: actions/upload-artifact@v4 + with: + name: test-logs + path: logs/ + # Note: this step is currently not writing to the gist for some reason # - name: Create Test Coverage Badge # uses: simon-k/dotnet-code-coverage-badge@v1.0.0