@@ -41,12 +41,12 @@ jobs:
4141 run : dotnet --info
4242
4343 - name : Restore dependencies
44- run : dotnet restore SharpCoreDB.CI.slnf
44+ run : dotnet restore SharpCoreDB.CI.slnf --configfile NuGet.Config
4545
4646 - name : Fail on deprecated NuGet packages
4747 shell : pwsh
4848 run : |
49- $output = dotnet list SharpCoreDB.CI.slnf package --deprecated
49+ $output = dotnet list SharpCoreDB.CI.slnf package --deprecated --configfile NuGet.Config
5050 $outputText = $output | Out-String
5151 Write-Host $outputText
5252
6565 - name : Fail on vulnerable NuGet packages
6666 shell : pwsh
6767 run : |
68- $output = dotnet list SharpCoreDB.CI.slnf package --vulnerable
68+ $output = dotnet list SharpCoreDB.CI.slnf package --vulnerable --configfile NuGet.Config
6969 $outputText = $output | Out-String
7070 Write-Host $outputText
7171
@@ -82,17 +82,17 @@ jobs:
8282 Write-Host "No vulnerable NuGet packages detected."
8383
8484 - name : Build
85- run : dotnet build SharpCoreDB.CI.slnf --configuration Release --no-restore /p:ContinuousIntegrationBuild=true
85+ run : dotnet build SharpCoreDB.CI.slnf --configuration Release --no-restore /p:ContinuousIntegrationBuild=true --configfile NuGet.Config
8686
8787 - name : Test SharpCoreDB.Tests
88- run : dotnet test tests/SharpCoreDB.Tests/SharpCoreDB.Tests.csproj --configuration Release --no-build --verbosity minimal --logger trx --results-directory ./TestResults/SharpCoreDB.Tests --collect:"XPlat Code Coverage" --filter "${{ env.CI_TEST_FILTER }}" --blame-hang --blame-hang-timeout 5m
88+ run : dotnet test tests/SharpCoreDB.Tests/SharpCoreDB.Tests.csproj --configuration Release --no-build --verbosity minimal --logger trx --results-directory ./TestResults/SharpCoreDB.Tests --collect:"XPlat Code Coverage" --filter "${{ env.CI_TEST_FILTER }}" --blame-hang --blame-hang-timeout 5m --configfile NuGet.Config
8989 timeout-minutes : 30
9090 env :
9191 CI : " true"
9292 GITHUB_ACTIONS : " true"
9393
9494 - name : Test SharpCoreDB.VectorSearch.Tests
95- run : dotnet test tests/SharpCoreDB.VectorSearch.Tests/SharpCoreDB.VectorSearch.Tests.csproj --configuration Release --no-build --verbosity minimal --logger trx --results-directory ./TestResults/SharpCoreDB.VectorSearch.Tests --collect:"XPlat Code Coverage" --filter "${{ env.CI_TEST_FILTER }}" --blame-hang --blame-hang-timeout 5m
95+ run : dotnet test tests/SharpCoreDB.VectorSearch.Tests/SharpCoreDB.VectorSearch.Tests.csproj --configuration Release --no-build --verbosity minimal --logger trx --results-directory ./TestResults/SharpCoreDB.VectorSearch.Tests --collect:"XPlat Code Coverage" --filter "${{ env.CI_TEST_FILTER }}" --blame-hang --blame-hang-timeout 5m --configfile NuGet.Config
9696 timeout-minutes : 15
9797 env :
9898 CI : " true"
@@ -134,11 +134,4 @@ jobs:
134134 dotnet-version : ' 10.0.x'
135135
136136 - name : Pack NuGet packages
137- run : dotnet pack SharpCoreDB.CI.slnf --configuration Release --output ./artifacts /p:ContinuousIntegrationBuild=true
138-
139- - name : Upload NuGet artifacts
140- uses : actions/upload-artifact@v4
141- with :
142- name : nuget-packages
143- path : ./artifacts/*.nupkg
144- if-no-files-found : error
137+ run : dotnet pack SharpCoreDB.CI.slnf --configuration Release --output ./artifacts /p:ContinuousIntegrationBuild=true --configfile NuGet.Config
0 commit comments