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
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,14 @@ jobs:
name: tests
path: 'Output/Tests/'

- name: '📦 Upload coverage artifact'
uses: actions/upload-artifact@v7
if: ${{ success() && !cancelled() && steps.test-artifact-check.outputs.found == 'true' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
with:
name: coverage-report-csharp
path: 'Output/Tests/coverage.cobertura.xml'
if-no-files-found: error

# ============================ DOCS ============================
- name: '🔍 Check if docs are needed'
id: check-docs
Expand Down Expand Up @@ -176,6 +184,28 @@ jobs:
name: github-pages


upload-coverage-csharp:
name: '📊 Upload Code Coverage'
needs: build
if: ${{ !cancelled() && needs.build.result == 'success' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
runs-on: ubuntu-latest
permissions:
contents: read
code-quality: write
steps:
- name: '⬇️ Download coverage artifact'
uses: actions/download-artifact@v8
with:
name: coverage-report-csharp

- name: '📊 Upload coverage report'
uses: actions/upload-code-coverage@v1
with:
file: coverage.cobertura.xml
language: C#
label: code-coverage-agent


publish-nuget:
name: '🚀 Publish to NuGet.org'
if: github.ref == 'refs/heads/main'
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -474,3 +474,8 @@ obj/
/packages/
riderModule.iml
/_ReSharper.Caches/```


# Code coverage output (local dotnet test runs and CI)
output/
Output/
Loading