File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : Sonar Scan
2
- on : [push, pull_request_target]
2
+ on : [ push, pull_request_target ]
3
3
4
4
jobs :
5
5
sonar :
15
15
- uses : actions/checkout@v2
16
16
with :
17
17
fetch-depth : 0
18
-
18
+
19
19
-
uses :
shivammathur/[email protected]
20
20
with :
21
21
php-version : 8.0
24
24
- run : composer coverage-clover
25
25
- run : composer coverage-html
26
26
27
+ - name : Fix code coverage paths
28
+ run : sed -i 's/\/home\/runner\/work\/yoti-php-sdk\/yoti-php-sdk\//\/github\/workspace\//g' ./coverage/coverage.xml
29
+
27
30
- uses : sonarsource/sonarcloud-github-action@master
28
31
env :
29
32
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30
33
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
31
-
Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ sonar.language = php
9
9
sonar.sources =src
10
10
sonar.tests =tests
11
11
sonar.exclusions =src/Protobuf/**/*
12
- ; sonar.php.coverage.reportPaths=coverage/coverage.xml
12
+ sonar.php.coverage.reportPaths =coverage/coverage.xml
13
13
sonar.verbose = true
You can’t perform that action at this time.
0 commit comments