diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b20dc35..891b621 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/AudioQualityEnhancer.Tests/AudioQualityEnhancer.Tests.csproj b/AudioQualityEnhancer.Tests/AudioQualityEnhancer.Tests.csproj index 8b931f9..916e5df 100644 --- a/AudioQualityEnhancer.Tests/AudioQualityEnhancer.Tests.csproj +++ b/AudioQualityEnhancer.Tests/AudioQualityEnhancer.Tests.csproj @@ -1,9 +1,7 @@  + - net10.0-windows - enable - enable false diff --git a/AudioQualityEnhancer.csproj b/AudioQualityEnhancer.csproj index b280f31..2224e11 100644 --- a/AudioQualityEnhancer.csproj +++ b/AudioQualityEnhancer.csproj @@ -1,12 +1,8 @@  + WinExe - net10.0-windows - enable - enable - latest - true app.manifest true true @@ -14,10 +10,6 @@ 0.17.0 - - true - - diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 0000000..bdabe66 --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,25 @@ + + + + net10.0-windows + enable + enable + latest + true + + + + + true + + + diff --git a/global.json b/global.json new file mode 100644 index 0000000..512142d --- /dev/null +++ b/global.json @@ -0,0 +1,6 @@ +{ + "sdk": { + "version": "10.0.100", + "rollForward": "latestFeature" + } +}