Skip to content

Commit 08609b8

Browse files
committed
testing sonar
1 parent 0727c02 commit 08609b8

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,22 @@ jobs:
4949
- name: Install dependencies
5050
run: bundle install
5151

52+
- name: SonarQube Scan (Pull Request)
53+
if: matrix.version == '3.2.2' && github.event_name == 'pull_request'
54+
uses: SonarSource/[email protected]
55+
env:
56+
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
with:
59+
projectBaseDir: .
60+
args: >
61+
-Dsonar.java.source=17
62+
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }}
63+
-Dsonar.projectVersion=${{ env.VERSION }}
64+
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
65+
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
66+
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}
67+
5268
- name: Run tests
5369
run: bundle exec rake
5470

@@ -73,18 +89,3 @@ jobs:
7389
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }}
7490
-Dsonar.projectVersion=${{ env.VERSION }}
7591
76-
- name: SonarQube Scan (Pull Request)
77-
if: matrix.version == '3.2.2' && github.event_name == 'pull_request'
78-
uses: SonarSource/[email protected]
79-
env:
80-
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
81-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82-
with:
83-
projectBaseDir: .
84-
args: >
85-
-Dsonar.java.source=17
86-
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }}
87-
-Dsonar.projectVersion=${{ env.VERSION }}
88-
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
89-
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
90-
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}

0 commit comments

Comments
 (0)