- Refactored Torrents.cs to use local DbSettings instead of global Settings.Get - Removed unused exception variable in Torrents.cs - Disabled xUnit parallelization globally to prevent test race conditions caused by shared global state - Enforced sequential test execution in CI workflow
24 lines
504 B
YAML
24 lines
504 B
YAML
name: dotnet test
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v5
|
|
with:
|
|
dotnet-version: 10.0.x
|
|
- name: Restore dependencies
|
|
run: dotnet restore server
|
|
- name: Build
|
|
run: dotnet build --no-restore server
|
|
- name: Test
|
|
run: dotnet test --no-build --verbosity normal -maxcpucount:1 server
|