mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 18:57:24 +00:00
Prevents test workflow jobs from hanging indefinitely
This commit is contained in:
1 parent
759ef94050
commit
68d9ad862f
1 file changed
+13
-1
@@ -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
|
||||
Reference in new issue
Block a user