Skip to content

Commit

Permalink
Merge pull request #8 from telstrapurple/feature/code-coverage
Browse files Browse the repository at this point in the history
Feature/code coverage
  • Loading branch information
sgryphon authored Jun 2, 2020
2 parents 7ff576d + 26f5924 commit a6e4f87
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ master, feature/* ]
pull_request:
branches: [ master ]
branches: [ master, develop ]

jobs:
Build:
Expand Down Expand Up @@ -41,3 +41,13 @@ jobs:
dotnet-version: 3.1.101
- name: Test
run: dotnet test --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura
- run: |
dotnet tool install -g dotnet-reportgenerator-globaltool
reportgenerator -reports:**/coverage.cobertura.xml -targetdir:CodeCoverage -reporttypes:Cobertura
name: Create Code coverage report
- uses: 5monkeys/cobertura-action@master
name: 'Publish code coverage'
with:
path: CodeCoverage/Cobertura.xml
repo_token: ${{ secrets.GITHUB_TOKEN }}
minimum_coverage: 50

0 comments on commit a6e4f87

Please sign in to comment.