Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,12 @@ jobs:
run: dotnet build .\AudioQualityEnhancer.slnx -c Release

- name: Test
run: dotnet test .\AudioQualityEnhancer.slnx -c Release --no-build
run: dotnet test .\AudioQualityEnhancer.slnx -c Release --no-build --collect:"XPlat Code Coverage" --results-directory TestResults

- name: Upload coverage
if: always()
uses: actions/upload-artifact@v6
with:
name: coverage
path: TestResults\**\coverage.cobertura.xml
if-no-files-found: error
4 changes: 1 addition & 3 deletions AudioQualityEnhancer.Tests/AudioQualityEnhancer.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<!-- Shared settings live in Directory.Build.props. -->
<PropertyGroup>
<TargetFramework>net10.0-windows</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down
10 changes: 1 addition & 9 deletions AudioQualityEnhancer.csproj
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<!-- Shared settings live in Directory.Build.props. -->
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net10.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<AnalysisLevel>latest</AnalysisLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<ApplicationManifest>app.manifest</ApplicationManifest>
<UseWPF>true</UseWPF>
<UseWindowsForms>true</UseWindowsForms>
<!-- Keep in sync with the release tag when stamping a new version. -->
<Version>0.17.0</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
<Compile Remove="AudioQualityEnhancer.Tests\**\*" />
<Compile Remove="Temp\**\*" />
Expand Down
25 changes: 25 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<Project>

<PropertyGroup>
<TargetFramework>net10.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<AnalysisLevel>latest</AnalysisLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
</PropertyGroup>

<PropertyGroup>
<!--
Warnings are errors in every configuration, not only in Release. The build used to
accept them locally and reject them in CI, so a warning was found after the push
instead of before it. Both projects are warning free, so this costs nothing today.

AnalysisMode is deliberately left at its default. Raising it to Recommended surfaces
about 300 analyzer warnings and All about 1100, mostly CA1305, CA1822, CA2007 and
CA1515. That is a cleanup of its own and must not be smuggled in through a build
file, where it would simply block every later change.
-->
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

</Project>
6 changes: 6 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sdk": {
"version": "10.0.100",
"rollForward": "latestFeature"
}
}