File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,10 @@ name: .NET
33on :
44 push :
55 branches : [ main ]
6+
67 pull_request :
7- branches : [ main ]
8-
8+ types : [opened, synchronize, reopened ]
9+
910 workflow_dispatch :
1011
1112jobs :
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
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
You can’t perform that action at this time.
0 commit comments