Skip to content

Fix documentation issue #12

Fix documentation issue

Fix documentation issue #12

Workflow file for this run

name: Coverage
on:
push:
branches: [ main ]
paths: [ 'lib/**', 'tests/**', '.github/workflows/cov.yml' ]
tags: '*'
pull_request:
branches: [ main ]
paths: [ 'lib/**', 'tests/**', '.github/workflows/cov.yml' ]
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.x'
- name: Install dependencies
run: dotnet tool install -g dotnet-reportgenerator-globaltool
- name: Perform tests and generate coverage
run: dotnet test --verbosity normal --collect:"XPlat Code Coverage" tests
- name: Consolidate tests reports
run: reportgenerator "-reports:tests/**/coverage.cobertura.xml" "-targetdir:coveragereport" -reporttypes:cobertura
- name: Publish coverage report to codecov
uses: codecov/codecov-action@v3
with:
files: ./coveragereport/Cobertura.xml
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true