Skip to content

Commit

Permalink
Merge pull request #11
Browse files Browse the repository at this point in the history
* detailed report generation

* small changes
  • Loading branch information
Stepami authored Sep 16, 2022
1 parent cfd7ca4 commit d9241df
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ jobs:
- name: Build
run: dotnet build --no-restore -c Release -v n
- name: Test
run: dotnet test -c Release --no-build -v n /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --filter="Category=Unit"
run: |
dotnet test -c Release --no-build -v n /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --filter="Category=Unit"
mkdir coverage-report
- name: Code Coverage Summary Report For Merge Request
if: github.event_name == 'pull_request'
uses: 5monkeys/cobertura-action@master
Expand All @@ -54,4 +56,14 @@ jobs:
hide_branch_rate: true
hide_complexity: true
thresholds: '80 100'

- name: ReportGenerator
uses: danielpalme/[email protected]
with:
reports: './Interpreter.Tests/coverage.cobertura.xml'
targetdir: './coverage-report'
- name: Upload coverage report artifact
if: github.event_name == 'push'
uses: actions/[email protected]
with:
name: CoverageReport
path: coverage-report

0 comments on commit d9241df

Please sign in to comment.