Skip to content

Commit d9241df

Browse files
authored
Merge pull request #11
* detailed report generation * small changes
1 parent cfd7ca4 commit d9241df

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/develop.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ jobs:
2929
- name: Build
3030
run: dotnet build --no-restore -c Release -v n
3131
- name: Test
32-
run: dotnet test -c Release --no-build -v n /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --filter="Category=Unit"
32+
run: |
33+
dotnet test -c Release --no-build -v n /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --filter="Category=Unit"
34+
mkdir coverage-report
3335
- name: Code Coverage Summary Report For Merge Request
3436
if: github.event_name == 'pull_request'
3537
uses: 5monkeys/cobertura-action@master
@@ -54,4 +56,14 @@ jobs:
5456
hide_branch_rate: true
5557
hide_complexity: true
5658
thresholds: '80 100'
57-
59+
- name: ReportGenerator
60+
uses: danielpalme/ReportGenerator-GitHub-Action@5.1.10
61+
with:
62+
reports: './Interpreter.Tests/coverage.cobertura.xml'
63+
targetdir: './coverage-report'
64+
- name: Upload coverage report artifact
65+
if: github.event_name == 'push'
66+
uses: actions/upload-artifact@v2.2.3
67+
with:
68+
name: CoverageReport
69+
path: coverage-report

0 commit comments

Comments
 (0)