-
Notifications
You must be signed in to change notification settings - Fork 13
38 lines (30 loc) · 983 Bytes
/
dotnetcore.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: .NET Coverage
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"
include-prerelease: true
- name: Install .NET Aspire workload
run: dotnet workload install aspire
- name: Build & Restore
run: dotnet build
- name: Test
run: dotnet test --no-build --settings CodeCoverage.runsettings --results-directory ./coverage
- name: Publish Coverage
uses: irongut/[email protected]
with:
filename: coverage/**/*.cobertura.xml
badge: true
format: markdown
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md