Skip to content

Commit 3cd01f1

Browse files
committed
Update dotnet.yml
1 parent d386432 commit 3cd01f1

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/dotnet.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Install .NET Core
3333
uses: actions/setup-dotnet@v4
3434
with:
35-
dotnet-version: |
35+
dotnet-version: |
3636
6.0.x
3737
7.0.x
3838
8.0.x
@@ -44,25 +44,19 @@ jobs:
4444
run: dotnet build --no-restore --configuration Release
4545

4646
- name: Run Test
47-
run: dotnet test --configuration Release --collect:"XPlat Code Coverage" --settings coverlet.runsettings
47+
run: dotnet test --no-build --configuration Release --collect:"XPlat Code Coverage" --settings coverlet.runsettings
4848

49-
- name: Generate Coverage
50-
uses: danielpalme/[email protected]
51-
with:
52-
reports: '${{github.workspace}}/test/*/TestResults/*/coverage.info'
53-
targetdir: ${{env.BUILD_PATH}}
54-
reporttypes: lcov
5549

5650
- name: Report Coverage
5751
if: success()
5852
uses: coverallsapp/github-action@v2
5953
with:
60-
file: artifacts/lcov.info
54+
file: "${{github.workspace}}/test/*/TestResults/*/coverage.info"
6155
format: lcov
6256

6357
- name: Create Packages
6458
if: success() && github.event_name != 'pull_request'
65-
run: dotnet pack --configuration Release --include-symbols --include-source --no-build --no-restore --output "${{env.BUILD_PATH}}"
59+
run: dotnet pack --configuration Release --include-symbols --include-source --no-build --output "${{env.BUILD_PATH}}"
6660

6761
- name: Upload Packages
6862
if: success() && github.event_name != 'pull_request'

0 commit comments

Comments
 (0)