Skip to content

Merge pull request #16 from thangchung/feat/up-aspire82 #17

Merge pull request #16 from thangchung/feat/up-aspire82

Merge pull request #16 from thangchung/feat/up-aspire82 #17

name: .NET Coverage
on:
push:
branches:
- main
- feat/*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Install .NET Aspire workload
run: dotnet workload install aspire
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --settings tests.runsettings --results-directory ./coverage
- name: Publish coverage
uses: irongut/[email protected]
with:
filename: coverage/**/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