Skip to content

Commit e8697bd

Browse files
authored
Update dotnet.yml
1 parent 9f4238e commit e8697bd

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/dotnet.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ name: .NET
33
on:
44
push:
55
branches: [ main ]
6+
67
pull_request:
7-
branches: [ main ]
8-
8+
types: [opened, synchronize, reopened]
9+
910
workflow_dispatch:
1011

1112
jobs:
@@ -31,6 +32,11 @@ jobs:
3132

3233
- name: Test
3334
run: dotnet test /p:CollectCoverage=true /p:CoverletOutput=coverage /p:CoverletOutputFormat=opencover
35+
36+
- name: Copy coverage files
37+
run: |
38+
mkdir ${{ github.workspace }}/coverage
39+
find . -name "*.opencover.xml" -exec sh -c 'cp "$0" "coverage/coverage-$(basename $0)"' {} \;
3440
3541
- name: SonarCloud Scan
3642
uses: sonarsource/sonarcloud-github-action@master
@@ -48,7 +54,7 @@ jobs:
4854
with:
4955
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5056
license: ${{ secrets.NDEPENDLICENSE }}
51-
coveragefolder: ${{ github.workspace }}/ManagedCode.Storage.IntegrationTests
57+
coveragefolder: ${{ github.workspace }}/coverage
5258
baseline: main_recent
5359
retention-days: 15
5460
#stopIfQGFailed: true

0 commit comments

Comments
 (0)