This repository was archived by the owner on Sep 10, 2024. It is now read-only.
File tree 1 file changed +1
-35
lines changed
1 file changed +1
-35
lines changed Original file line number Diff line number Diff line change 40
40
run : dotnet restore PCHCB/PCHCB.Tests/PCHCB.Tests.csproj
41
41
42
42
- name : Test
43
- run : dotnet test PCHCB/PCHCB.Tests/PCHCB.Tests.csproj --no-restore --verbosity normal --collect:"XPlat Code Coverage"
44
-
45
- - name : Upload coverage file
46
- uses : actions/upload-artifact@v2
47
- with :
48
- name : coverage-file
49
- path : PCHCB/TestResults/coverage.cobertura.xml
50
-
51
- coverage :
52
- needs : test
53
- runs-on : ubuntu-latest
54
-
55
- steps :
56
- - uses : actions/checkout@v2
57
-
58
- - name : Setup .NET Core
59
- uses : actions/setup-dotnet@v1
60
- with :
61
- dotnet-version : 6.0.x
62
-
63
- - name : Download coverage file
64
- uses : actions/download-artifact@v2
65
- with :
66
- name : coverage-file
67
-
68
- - name : Generate Code Coverage Report
69
- run : |
70
- dotnet tool install --global dotnet-reportgenerator-globaltool
71
- reportgenerator "-reports:./coverage.cobertura.xml" "-targetdir:coveragereport" -reporttypes:"Cobertura;HtmlInline_AzurePipelines;HtmlChart"
72
-
73
- - name : Publish Code Coverage Report
74
- uses : actions/upload-artifact@v2
75
- with :
76
- name : code-coverage-report
77
- path : coveragereport/
43
+ run : dotnet test PCHCB/PCHCB.Tests/PCHCB.Tests.csproj --no-restore --verbosity normal
You can’t perform that action at this time.
0 commit comments