File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 9
9
- develop
10
10
- master
11
11
12
+ concurrency :
13
+ group : ${{ github.workflow }}-${{ github.event_name == 'push' && github.run_number || github.event.pull_request.number }}
14
+ cancel-in-progress : true
15
+
12
16
jobs :
13
17
build :
14
18
name : Build
44
48
vendor/bin/phpcs --ignore=functions.php --standard=PSR2 src/
45
49
vendor/bin/phpunit -c phpunit.xml.dist -v --testsuite integration
46
50
51
+ sonarqube :
52
+ name : Sonarqube
53
+ runs-on : ubuntu-latest
54
+ steps :
55
+ - name : Checkout code
56
+ uses : actions/checkout@v2
57
+
47
58
- name : SonarQube Scan (Push)
48
59
if : github.event_name == 'push'
49
60
uses : SonarSource/sonarcloud-github-action@v1.5
55
66
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }}
56
67
-Dsonar.projectName=${{ github.event.repository.name }}
57
68
-Dsonar.projectKey=${{ github.event.repository.name }}
58
- -Dsonar.sources='. /src'
69
+ -Dsonar.sources="${{ github.workspace }} /src"
59
70
-Dsonar.exclusions='**/tests/**/*.*'
60
71
-Dsonar.links.ci="https://github.com/splitio/${{ github.event.repository.name }}/actions"
61
72
-Dsonar.links.scm="https://github.com/splitio/${{ github.event.repository.name }}"
71
82
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }}
72
83
-Dsonar.projectName=${{ github.event.repository.name }}
73
84
-Dsonar.projectKey=${{ github.event.repository.name }}
74
- -Dsonar.sources='. /src'
85
+ -Dsonar.sources="${{ github.workspace }} /src"
75
86
-Dsonar.exclusions='**/tests/**/*.*'
76
87
-Dsonar.links.ci="https://github.com/splitio/${{ github.event.repository.name }}/actions"
77
88
-Dsonar.links.scm="https://github.com/splitio/${{ github.event.repository.name }}"
You can’t perform that action at this time.
0 commit comments