Skip to content

Commit

Permalink
Test crash / timeout (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredpar authored Oct 15, 2024
1 parent 73b5833 commit 8fd9a30
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ jobs:
TEST_ARTIFACTS_PATH: ${{ github.workspace }}${{ matrix.slash }}artifacts${{ matrix.slash }}test
TEST_RESULTS_PATH: ${{ github.workspace }}${{ matrix.slash }}artifacts${{ matrix.slash }}test-results
TEST_COVERAGE_PATH: ${{ github.workspace }}${{ matrix.slash }}artifacts${{ matrix.slash }}coverage
DOTNET_DbgEnableMiniDump: 1
DOTNET_DbgMiniDumpType: 2
DOTNET_CreateDumpLogToFile: ${{ github.workspace }}${{ matrix.slash }}artifacts${{ matrix.slash }}test${{ matrix.slash }}%e-%p.dmp

timeout-minutes: 30

name: Build and Test ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -59,6 +64,7 @@ jobs:
- name: Test Linux
run: >
dotnet test --no-build --framework net8.0
--blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m
--logger "console;verbosity=detailed"
--logger "trx;LogFileName=${{ env.TEST_RESULTS_PATH }}/TestResults-Linux.trx"
-p:CollectCoverage=true -p:CoverletOutputFormat=cobertura -p:CoverletOutput=${{ env.TEST_COVERAGE_PATH }}/coverage.linux.xml
Expand All @@ -67,6 +73,7 @@ jobs:
- name: Test Windows .NET Core
run: >
dotnet test --no-build --framework net8.0
--blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m
--logger "console;verbosity=detailed"
--logger "trx;LogFileName=${{ env.TEST_RESULTS_PATH}}/TestResults-Windows-Core.trx"
-p:CollectCoverage=true -p:CoverletOutputFormat=cobertura -p:CoverletOutput=${{ env.TEST_COVERAGE_PATH }}/coverage.windows.core.xml
Expand All @@ -75,6 +82,7 @@ jobs:
- name: Test Windows .NET Framework
run: >
dotnet test --no-build --framework net8.0
--blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m
--logger "console;verbosity=detailed"
--logger "trx;LogFileName=${{ env.TEST_RESULTS_PATH}}/TestResults-Windows-Framework.trx"
-p:CollectCoverage=true -p:CoverletOutputFormat=cobertura -p:CoverletOutput=${{ env.TEST_COVERAGE_PATH }}/coverage.windows.framework.xml
Expand All @@ -100,12 +108,12 @@ jobs:
if: always()
with:
name: test-results
path: ${{ env.TEST_RESULTS_PATH }}/*.trx
path: ${{ env.TEST_RESULTS_PATH }}

- name: Publish Test Artifacts
uses: actions/upload-artifact@v3
if: always()
with:
name: Test Artifacts ${{ matrix.os }}
path: $ {{ env.TEST_ARTIFACTS_PATH }}
path: ${{ env.TEST_ARTIFACTS_PATH }}

0 comments on commit 8fd9a30

Please sign in to comment.