Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiseni committed Sep 26, 2024
1 parent 9f8f655 commit e0e0eec
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
run: ./setup-sqllocaldb.ps1
shell: pwsh
- name: Build
run: dotnet build QuerySpecification.sln --configuration Release
run: dotnet build --configuration Release
- name: Test
run: dotnet test QuerySpecification.sln --configuration Release --no-build --no-restore --collect:"XPlat Code Coverage"
run: dotnet test --configuration Release --no-build --no-restore --collect:"XPlat Code Coverage"
- name: ReportGenerator
uses: danielpalme/[email protected]
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ jobs:
run: ./setup-sqllocaldb.ps1
shell: pwsh
- name: Build
run: dotnet build QuerySpecification.sln --configuration Release
run: dotnet build --configuration Release
- name: Test
run: dotnet test QuerySpecification.sln --configuration Release --no-build --no-restore
run: dotnet test --configuration Release --no-build --no-restore
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
run: ./setup-sqllocaldb.ps1
shell: pwsh
- name: Build
run: dotnet build QuerySpecification.sln --configuration Release
run: dotnet build --configuration Release
- name: Test
run: dotnet test QuerySpecification.sln --configuration Release --no-build --no-restore
run: dotnet test --configuration Release --no-build --no-restore
- name: Pack
run: dotnet pack QuerySpecification.sln --configuration Release --no-build --no-restore --output .
run: dotnet pack --configuration Release --no-build --no-restore --output .
- name: Push to NuGet
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
<PackageVersion Include="ManagedObjectSize.ObjectPool" Version="0.0.7-gd53ba9da59" />
<PackageVersion Include="BenchmarkDotNet" Version="0.14.0" />
<PackageVersion Include="AutoMapper" Version="13.0.1" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageVersion Include="FluentAssertions" Version="6.12.1" />
<PackageVersion Include="MartinCostello.SqlLocalDb" Version="3.4.0" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.8" />
<PackageVersion Include="Respawn" Version="6.2.1" />
<PackageVersion Include="FluentAssertions" Version="6.12.1" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageVersion Include="xunit" Version="2.9.0" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" />
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
Expand Down
2 changes: 2 additions & 0 deletions exclusion.dic
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Pozitron
pozitron
criterias
_respawner
localdb
6 changes: 3 additions & 3 deletions run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ find . -type d -name TestResults -exec rm -rf {} \; > /dev/null 2>&1
testtarget="$1"

if [ "$testtarget" = "" ]; then
testtarget="QuerySpecification.sln"
testtarget="*.sln"
fi

dotnet build "$testtarget" --configuration Release
dotnet test "$testtarget" --configuration Release --no-build --no-restore --collect:"XPlat Code Coverage"
dotnet build $testtarget --configuration Release
dotnet test $testtarget --configuration Release --no-build --no-restore --collect:"XPlat Code Coverage"

reportgenerator \
-reports:tests/**/coverage.cobertura.xml \
Expand Down
4 changes: 2 additions & 2 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@

<GenerateDocumentationFile>false</GenerateDocumentationFile>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<Deterministic>false</Deterministic>
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild>
<Deterministic>true</Deterministic>
</PropertyGroup>

<PropertyGroup Label="Symbols">
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild>
<!--<DebugType>Embedded</DebugType>-->
<!--<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>-->
</PropertyGroup>
Expand Down

0 comments on commit e0e0eec

Please sign in to comment.