refactor: Update .NET version in GitHub Actions workflow to 9.0.x #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: "9.0.x" | |
include-prerelease: true | |
- 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 |