Skip to content

Collect and report code coverage #4

Collect and report code coverage

Collect and report code coverage #4

Workflow file for this run

on: [pull_request]
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET 7.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: "7.x"
- name: Install tools
run: dotnet tool restore
- name: Build
run: dotnet build
- name: Test
run: dotnet test --collect:"XPlat Code Coverage"
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}