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
7 changes: 1 addition & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,9 @@ updates:
interval: "daily"
open-pull-requests-limit: 10
groups:
dotnet:
actions:
patterns:
- "*" # Prefer a single PR per solution update.
# Docker Images
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "daily"
# Dotnet SDK
- package-ecosystem: "dotnet-sdk"
directory: "/"
Expand Down
17 changes: 2 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,8 @@ jobs:
run: dotnet build -c Release

- name: Test with coverage
run: >
dotnet test -c Release --no-build --
--coverage
--coverage-output-format cobertura
--coverage-output coverage.cobertura.xml

- name: Restore tools
run: dotnet tool restore

- name: Generate coverage report & badges
run: >
dotnet reportgenerator
-reports:"**/TestResults/coverage.cobertura.xml"
-targetdir:"./CoverageReport"
-reporttypes:"Html;Badges"
shell: pwsh
run: ./eng/coverage.ps1 -NoBuild

- name: Upload coverage report
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
Expand Down
12 changes: 5 additions & 7 deletions Vulthil.SharedKernel.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
<File Path=".github/instructions/style-guidelines.instructions.md" />
</Folder>
<Folder Name="/.github/workflows/">
<File Path=".github/workflows/backport.yml" />
<File Path=".github/workflows/ci.yml" />
<File Path=".github/workflows/claude-code-review.yml" />
<File Path=".github/workflows/claude.yml" />
<File Path=".github/workflows/codeql.yml" />
<File Path=".github/workflows/dependabot-approve-and-automerge.yml" />
<File Path=".github/workflows/docs.yml" />
<File Path=".github/workflows/release.yml" />
Expand All @@ -22,6 +24,9 @@
<Folder Name="/docs/">
<File Path="docs/docfx.json" />
</Folder>
<Folder Name="/eng/">
<File Path="eng/coverage.ps1" />
</Folder>
<Folder Name="/samples/">
<File Path="samples/aspire.config.json" />
<File Path="samples/Directory.Build.props" />
Expand Down Expand Up @@ -50,15 +55,8 @@
<File Path="Directory.Packages.props" />
<File Path="global.json" />
<File Path="README.md" />
<File Path="test-reports" />
<File Path="version.json" />
<File Path="Vulthil.SharedKernel.png" />
<File Path="watch" />
<File Path="watch-samples" />
</Folder>
<Folder Name="/Solution Items/TestReports/">
<File Path="TestReports/Cobertura.xml" />
<File Path="TestReports/index.html" />
</Folder>
<Folder Name="/src/">
<File Path="src/Directory.Build.props" />
Expand Down
23 changes: 23 additions & 0 deletions eng/coverage.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Single source of truth for the coverage commands run by ci.yml's "Test with
# coverage" step -- keep this script and that step in sync; ci.yml invokes
# this script directly instead of duplicating the commands below.

param(
[switch]$NoBuild
)

$ErrorActionPreference = 'Stop'
$PSNativeCommandUseErrorActionPreference = $true

if (-not $NoBuild) {
dotnet build -c Release
}

dotnet test -c Release --no-build -- --coverage --coverage-output-format cobertura --coverage-output coverage.cobertura.xml

dotnet tool restore

dotnet reportgenerator -reports:"**/TestResults/coverage.cobertura.xml" -targetdir:"./CoverageReport" -reporttypes:"Html;Badges"

$reportPath = Join-Path $PWD "CoverageReport" "index.html"
Write-Host "Coverage report: $reportPath"
29 changes: 0 additions & 29 deletions test-reports

This file was deleted.

25 changes: 0 additions & 25 deletions watch

This file was deleted.

25 changes: 0 additions & 25 deletions watch-samples

This file was deleted.