Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit 313b32a

Browse files
authored
Update workflow.yml
1 parent 495b5f7 commit 313b32a

File tree

1 file changed

+1
-35
lines changed

1 file changed

+1
-35
lines changed

.github/workflows/workflow.yml

+1-35
Original file line numberDiff line numberDiff line change
@@ -40,38 +40,4 @@ jobs:
4040
run: dotnet restore PCHCB/PCHCB.Tests/PCHCB.Tests.csproj
4141

4242
- 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

0 commit comments

Comments
 (0)