KonH / coverlet-action

coverlet github action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coverlet action

This action runs coverlet coverage tool on a dotnet core solution

Inputs

testProject

Required the path to the unit test csproj (relative to the repository root) ex : `testProject/testProject.csproj

output

Required name of the coverage output file.

outputFormat

Required format of the output coverage file (lcov,cobertura, ...) see coverlet documentation : Coverage Output

excludes

assemblies and namespaces exclusions for coverage : see coverlet documentation Filters Filters must be separated with a ',' (comma). example : [filteredAssembly1]*,[filteredAssembl2]namespace2.*

Outputs

coverageFile

path to the generated coverage file. can be used to send data to coveralls for example.

Example usage

uses: b3b00/coverlet-action@1.1.0
with:
  testProject: 'myProjectTests/myProjectTests.csproj'
  output: 'lcov.info'
  outputFormat: 'lcov'
  excludes: '[program]*,[test]test.*'

chaining coverlet with coveralls

- name : coverlet
uses: b3b00/coverlet-action@1.1.0
with:
  testProject: 'myProjectTests/myProjectTests.csproj'
  output: 'lcov.info'
  outputFormat: 'lcov'
  excludes: '[program]*,[test]test.*'
- name: coveralls      
uses: coverallsapp/github-action@v1.1.1
with:
  github-token: ${{secrets.GITHUB_TOKEN }} 
  path-to-lcov: ${{steps.coverlet.outputs.coverageFile}} 

About

coverlet github action

License:MIT License


Languages

Language:JavaScript 100.0%