Update README.md #43
This file contains hidden or 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: Test Coverage | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Run Tests with Coverage | |
run: dotnet test --no-build --collect:"XPlat Code Coverage" | |
- name: Upload to Codecov | |
uses: coverallsapp/github-action@v2 | |
with: | |
file: /home/runner/work/ConsoleHero/ConsoleHero/ConsoleHero.Test/TestResults/**/coverage.cobertura.xml |