mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 21:01:10 +00:00
Capitalizes the first word and adds the terminal period in the Dockerfiles, the compose files, the CI workflow, the MSBuild comments, the Razor views and the client assets. The existing delimiter spacing is preserved, structural banners and commented-out commands are untouched, and the Dockerfile tool names use their proper case.
47 lines
1.7 KiB
YAML
47 lines
1.7 KiB
YAML
name: Run All Tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
workflow_dispatch: # Enable manual triggers.
|
|
|
|
jobs:
|
|
run-platform-tests:
|
|
runs-on: ${{ matrix.os }}
|
|
timeout-minutes: 60
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up .NET
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: '10.0.x'
|
|
- name: Raise file watcher limits
|
|
# The test hosts create a Razor file watcher per static asset, and the default limit of 128 inotify instances
|
|
# is reached when several hosts run in parallel.
|
|
if: runner.os == 'Linux'
|
|
run: sudo sysctl -w fs.inotify.max_user_instances=1024 fs.inotify.max_user_watches=524288
|
|
- name: Restore Six Labors license
|
|
shell: bash
|
|
run: printf '%s\n' "${{ secrets.SIXLABORS_LICENSE_KEY }}" > src/Lumina.Domain/sixlabors.lic
|
|
- name: Restore dependencies
|
|
run: dotnet restore src/Lumina.slnx
|
|
- name: Build
|
|
run: dotnet build src/Lumina.slnx --no-restore -p:SixLaborsLicenseEnforceBuild=true
|
|
- name: Run tests
|
|
# 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.slnx --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
|