You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/build-and-deploy.yml
+6
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,12 @@ jobs:
33
33
- name: Test Code
34
34
run: ./gradlew check
35
35
36
+
- name: SonarCloud Scan
37
+
run: ./gradlew test jacocoTestReport sonarqube
38
+
env:
39
+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
40
+
SONAR_HOST_URL: https://sonarcloud.io
41
+
36
42
build-code-and-push-docker:
37
43
name: Build code and push docker image
38
44
if: startsWith(github.ref, 'refs/heads/dev-') || startsWith(github.ref, 'refs/heads/master') || github.event.deployment.payload.triggered # Build and push docker if branch is either master or dev-*
0 commit comments