diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index a8e9e279..977de436 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -105,6 +105,14 @@ jobs: fi node --version && npm --version + - name: Setup .NET SDK + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 10.0.x + + - name: "[CRITICAL] Run .NET Unit Tests (Warnings as Errors)" + run: dotnet test src/dotnet/QuantEngine.Core.Tests/QuantEngine.Core.Tests.csproj -c Release --nologo -p:TreatWarningsAsErrors=true + - name: "[CRITICAL] No Direct API Trading Gate" run: python3 tools/validate_no_direct_api_trading_v1.py @@ -145,13 +153,7 @@ jobs: - name: Validate Quant Engine WBS run: python3 tools/validate_quant_engine_wbs_v1.py - - name: Setup .NET SDK - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 10.0.x - - name: Run .NET Unit Tests - run: dotnet test src/dotnet/QuantEngine.Core.Tests/QuantEngine.Core.Tests.csproj -c Release --nologo - name: Build Calibration Priority Backlog run: python3 tools/build_calibration_priority_v1.py @@ -210,10 +212,10 @@ jobs: run: python3 tools/validate_replay_live_separation_v1.py - name: Render Final Decision Packet V4 - run: dotnet run --project src/dotnet/QuantEngine.Tools/QuantEngine.Tools.csproj -- packet-v4 --packet=Temp/final_decision_packet_active.json --out=Temp/final_decision_packet_v4.json + run: dotnet run --project src/dotnet/QuantEngine.Tools/QuantEngine.Tools.csproj -p:TreatWarningsAsErrors=true -- packet-v4 --packet=Temp/final_decision_packet_active.json --out=Temp/final_decision_packet_v4.json - name: Render Operational Report - run: dotnet run --project src/dotnet/QuantEngine.Tools/QuantEngine.Tools.csproj -- report --packet=Temp/final_decision_packet_active.json --out=Temp/operational_report.json + run: dotnet run --project src/dotnet/QuantEngine.Tools/QuantEngine.Tools.csproj -p:TreatWarningsAsErrors=true -- report --packet=Temp/final_decision_packet_active.json --out=Temp/operational_report.json - name: Validate Report Packet Sync run: python3 tools/validate_report_packet_sync_v1.py --packet Temp/final_decision_packet_active.json --report Temp/operational_report.json | tee Temp/validate_report_packet_sync_v1.json diff --git a/src/dotnet/QuantEngine.Application/QuantEngine.Application.csproj b/src/dotnet/QuantEngine.Application/QuantEngine.Application.csproj index ce16b8cc..f9926a95 100644 --- a/src/dotnet/QuantEngine.Application/QuantEngine.Application.csproj +++ b/src/dotnet/QuantEngine.Application/QuantEngine.Application.csproj @@ -9,6 +9,8 @@ + true + $(NoWarn);NU1603 net10.0 enable enable diff --git a/src/dotnet/QuantEngine.Core.Tests/QuantEngine.Core.Tests.csproj b/src/dotnet/QuantEngine.Core.Tests/QuantEngine.Core.Tests.csproj index 4c80110d..8859f645 100644 --- a/src/dotnet/QuantEngine.Core.Tests/QuantEngine.Core.Tests.csproj +++ b/src/dotnet/QuantEngine.Core.Tests/QuantEngine.Core.Tests.csproj @@ -1,6 +1,8 @@ + true + $(NoWarn);NU1603 net10.0 enable enable diff --git a/src/dotnet/QuantEngine.Core/QuantEngine.Core.csproj b/src/dotnet/QuantEngine.Core/QuantEngine.Core.csproj index b7601447..d4ac136d 100644 --- a/src/dotnet/QuantEngine.Core/QuantEngine.Core.csproj +++ b/src/dotnet/QuantEngine.Core/QuantEngine.Core.csproj @@ -1,6 +1,8 @@  + true + $(NoWarn);NU1603 net10.0 enable enable diff --git a/src/dotnet/QuantEngine.Infrastructure/QuantEngine.Infrastructure.csproj b/src/dotnet/QuantEngine.Infrastructure/QuantEngine.Infrastructure.csproj index d581d4ac..cf0130e6 100644 --- a/src/dotnet/QuantEngine.Infrastructure/QuantEngine.Infrastructure.csproj +++ b/src/dotnet/QuantEngine.Infrastructure/QuantEngine.Infrastructure.csproj @@ -17,6 +17,8 @@ + true + $(NoWarn);NU1603 net10.0 enable enable diff --git a/src/dotnet/QuantEngine.Tools/QuantEngine.Tools.csproj b/src/dotnet/QuantEngine.Tools/QuantEngine.Tools.csproj index 0cbb4351..c4dec772 100644 --- a/src/dotnet/QuantEngine.Tools/QuantEngine.Tools.csproj +++ b/src/dotnet/QuantEngine.Tools/QuantEngine.Tools.csproj @@ -1,6 +1,8 @@ + true + $(NoWarn);NU1603 Exe net10.0 enable diff --git a/src/dotnet/QuantEngine.Web/QuantEngine.Web.csproj b/src/dotnet/QuantEngine.Web/QuantEngine.Web.csproj index 7cf44f87..a12a0985 100644 --- a/src/dotnet/QuantEngine.Web/QuantEngine.Web.csproj +++ b/src/dotnet/QuantEngine.Web/QuantEngine.Web.csproj @@ -19,6 +19,8 @@ + true + $(NoWarn);NU1603 net10.0 enable enable