Skip to content

Commit

Permalink
chore: Remove generated models from code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
svrooij committed May 2, 2024
1 parent f13ddbd commit c341709
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: 📝 Code Coverage report
run: |
dotnet tool install --global dotnet-reportgenerator-globaltool --version 5.2.5
reportgenerator -reports:${{github.workspace}}/coverage.cobertura.xml -targetdir:${{github.workspace}}/report -reporttypes:MarkdownSummaryGithub -filefilters:-*.g.cs "-classfilters:-WixSharp.*;-WingetIntune.Os.*" -verbosity:Warning
reportgenerator -reports:${{github.workspace}}/coverage.cobertura.xml -targetdir:${{github.workspace}}/report -reporttypes:MarkdownSummaryGithub -filefilters:-*.g.cs "-classfilters:-WixSharp.*;-WingetIntune.Os.*;WingetIntune.Internal.MsStore.Models.*" -verbosity:Warning
sed -i 's/# Summary/## 📝 Code Coverage/g' ${{github.workspace}}/report/SummaryGithub.md
sed -i 's/## Coverage/### 📝 Code Coverage details/g' ${{github.workspace}}/report/SummaryGithub.md
cat ${{github.workspace}}/report/*.md >> $GITHUB_STEP_SUMMARY
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace WingetIntune.Internal.MsStore;
namespace WingetIntune.Internal.MsStore.Models;

public class DisplayCatalogResponse
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

namespace WingetIntune.Internal.MsStore;
namespace WingetIntune.Internal.MsStore.Models;

#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
public class MicrosoftStoreManifest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace WingetIntune.Internal.MsStore;
namespace WingetIntune.Internal.MsStore.Models;
public class MicrosoftStoreSearchRequest
{
public required MicrosoftStoreSearchQuery Query { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/WingetIntune/Internal/MsStore/StoreClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Net.Http.Headers;
using System.Net.Http.Json;
using System.Text.Json;
using WingetIntune.Internal.MsStore.Models;

namespace WingetIntune.Internal.MsStore;

Expand Down
2 changes: 1 addition & 1 deletion src/WingetIntune/Models/Mapper.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.Graph.Beta.Models;
using Riok.Mapperly.Abstractions;
using System.Text.RegularExpressions;
using WingetIntune.Internal.MsStore;
using WingetIntune.Internal.MsStore.Models;
using WingetIntune.Intune;

namespace WingetIntune.Models;
Expand Down

0 comments on commit c341709

Please sign in to comment.