Prevents test workflow jobs from hanging indefinitely

This commit is contained in:
BinaryAlley committed 2026-09-02 12:29:07 -07:00
1 parent 759ef94050
commit 68d9ad862f
1 file changed
+13 -1
+13 -1
View File
@@ -9,6 +9,7 @@ on:
jobs:
run-platform-tests:
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
@@ -26,4 +27,15 @@ jobs:
- name: Build
run: dotnet build src/Lumina.sln --no-restore -p:SixLaborsLicenseEnforceBuild=true
- name: Run tests
run: dotnet test src/Lumina.sln --no-build --verbosity normal
# blame-hang terminates a test that blocks for 10 minutes and dumps the hang stack,
# turning the recurring 'stuck job' into a failing job that names the culprit test
run: dotnet test src/Lumina.sln --no-build --verbosity normal --blame-hang --blame-hang-timeout 10m
- name: Upload hang diagnostics
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-hang-diagnostics-${{ matrix.os }}
path: |
**/TestResults/**/*.dmp
**/TestResults/**/*.log
if-no-files-found: ignore