Skip to content

Commit

Permalink
update codecov to be less intrusive (#15)
Browse files Browse the repository at this point in the history
* update codecov to be less intrusive

* fix codecov yaml

* add coverage exclusion
  • Loading branch information
adamhathcock authored Jul 9, 2024
1 parent 29e7e84 commit 46c3f9d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ jobs:
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-

- name: 🔫 Build All
run: ./build.sh
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ tools

.DS_Store
*.snupkg
coverage.xml
coverage.xml
5 changes: 4 additions & 1 deletion build/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ void RemoveDirectory(string d)
Glob.Files(".", "**/*.Tests.Unit.csproj").Concat(Glob.Files(".", "**/*.Tests.csproj")),
async file =>
{
await RunAsync("dotnet", $"test {file} -c Release --no-build --no-restore --verbosity=normal /p:AltCover=true");
await RunAsync(
"dotnet",
$"test {file} -c Release --no-build --no-restore --verbosity=normal /p:AltCover=true /p:AltCoverAttributeFilter=ExcludeFromCodeCoverage"
);
}
);

Expand Down
8 changes: 7 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ coverage:
status:
project:
default:
informational: true
target: auto
threshold: 1%
base: auto
base: auto
patch:
default:
informational: true
github_checks:
annotations: false

0 comments on commit 46c3f9d

Please sign in to comment.