File tree 2 files changed +39
-0
lines changed 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : sonar-scanner
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ SonarScanner :
7
+ if : github.repository == 'astrizhachuk/gitlab-services'
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - name : Checkout
11
+ uses : actions/checkout@v1
12
+ - name : Setup SonarQube scanner
13
+ uses : warchant/setup-sonar-scanner@v1
14
+ - name : Run SonarQube on push
15
+ if : github.event_name == 'push'
16
+ run : sonar-scanner
17
+ -Dsonar.login=${{ secrets.SONAR_TOKEN }}
18
+ -Dsonar.host.url=https://sonar.openbsl.ru
19
+ -Dsonar.branch.name=${GITHUB_REF#refs/heads/}
20
+ - name : Run SonarQube on pull request
21
+ if : github.event_name == 'pull_request'
22
+ run : sonar-scanner
23
+ -Dsonar.login=${{ secrets.SONAR_TOKEN }}
24
+ -Dsonar.host.url=https://sonar.openbsl.ru
25
+ -Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
26
+ -Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
27
+ -Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}
Original file line number Diff line number Diff line change
1
+ sonar.projectName =gitlab-services
2
+ sonar.projectKey =gitlab-services
3
+
4
+ sonar.sourceEncoding =UTF-8
5
+
6
+ sonar.sources =GitlabServices
7
+ sonar.tests =GitlabServices.Tests
8
+
9
+ sonar.scm.enabled =true
10
+ sonar.scm.provider =git
11
+
12
+ sonar.bsl.languageserver.diagnosticLanguage =ru
You can’t perform that action at this time.
0 commit comments