Skip to content

Commit a15a801

Browse files
fix: remove dorny test-reporter and suppress NU1903 in test project
dorny/test-reporter@v1 uses git ls-files on pull_request events and never sees the runtime-generated .trx file, causing fail-on-empty to kill the build even when all tests pass. The dotnet test exit code already gates the build correctly so the reporter adds no value here. Also adds NuGetAuditSuppress for GHSA-2m69-gcr7-jv3q to the test project csproj to silence the SQLitePCLRaw.lib.e_sqlite3 NU1903 warning that was appearing during test project restore and build.
1 parent 9fe1515 commit a15a801

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,7 @@ jobs:
3434
run: dotnet build EFCore.Sqlite.Concurrency.Test/EFCore.Sqlite.Concurrency.Test.csproj -c Release --no-restore
3535

3636
- name: Test
37-
run: dotnet test EFCore.Sqlite.Concurrency.Test/EFCore.Sqlite.Concurrency.Test.csproj --framework net10.0 -c Release --no-build --logger "trx;LogFileName=results.xml"
38-
39-
- name: Publish Test Results
40-
uses: dorny/test-reporter@v1
41-
if: always()
42-
with:
43-
name: xUnit Tests
44-
path: "**/*.trx"
45-
reporter: dotnet-trx
37+
run: dotnet test EFCore.Sqlite.Concurrency.Test/EFCore.Sqlite.Concurrency.Test.csproj --framework net10.0 -c Release --no-build
4638

4739
- name: Pack
4840
run: dotnet pack EntityFrameworkCore.Sqlite.Concurrency/EFCore.Sqlite.Concurrency.csproj -c Release --no-build -o out

EFCore.Sqlite.Concurrency.Test/EFCore.Sqlite.Concurrency.Test.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,10 @@
2828
<Using Include="Xunit"/>
2929
</ItemGroup>
3030

31+
<!-- Suppress GHSA-2m69-gcr7-jv3q: SQLitePCLRaw.lib.e_sqlite3 2.1.11 is the latest
32+
available version; no patched release exists yet on NuGet. -->
33+
<ItemGroup>
34+
<NuGetAuditSuppress Include="https://github.com/advisories/GHSA-2m69-gcr7-jv3q" />
35+
</ItemGroup>
36+
3137
</Project>

0 commit comments

Comments
 (0)