Skip to content

Bump the production-dependencies group with 24 updates #263

Bump the production-dependencies group with 24 updates

Bump the production-dependencies group with 24 updates #263

Workflow file for this run

name: Test & Coverage
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
test-coverage:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Run tests with coverage
run: |
dotnet test --no-build --configuration Release \
/p:CollectCoverage=true \
/p:CoverletOutputFormat=cobertura \
/p:Threshold=70 \
/p:ThresholdType=line,branch \
/p:Exclude="[*.Tests]*,[*]Program,[*.ServiceDefaults]*"
- name: Generate coverage report
if: always()
run: |
dotnet tool install -g dotnet-reportgenerator-globaltool
reportgenerator \
-reports:"**/coverage.cobertura.xml" \
-targetdir:"coverage-report" \
-reporttypes:"Html;MarkdownSummaryGithub"
- name: Upload coverage report
if: always()
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage-report/
- name: Comment PR with coverage
if: github.event_name == 'pull_request' && always()
uses: marocchino/sticky-pull-request-comment@v2
with:
recreate: true
path: coverage-report/SummaryGithub.md