This repository was archived by the owner on May 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +25
-7
lines changed Expand file tree Collapse file tree 3 files changed +25
-7
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,20 @@ jobs:
1414
1515 steps :
1616 - uses : actions/checkout@v3
17+ with :
18+ fetch-depth : 0
1719 - name : Set up JDK 11
1820 uses : actions/setup-java@v3
1921 with :
2022 distribution : temurin
2123 java-version : 11
24+ cache : ' gradle'
25+ - name : Cache SonarCloud packages
26+ uses : actions/cache@v3
27+ with :
28+ path : ~/.sonar/cache
29+ key : ${{ runner.os }}-sonar
30+ restore-keys : ${{ runner.os }}-sonar
2231
2332 - name : Start docker compose for integration tests
2433 run : docker-compose -f docker/docker-compose.yml up -d
2837
2938 - name : Run build with Gradle wrapper
3039 id : gradle
31- run : ./gradlew --info --scan build jacocoTestReport
40+ env :
41+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
43+ run : ./gradlew --info --scan --no-daemon build jacocoTestReport sonarqube
3244
3345 - name : Upload build reports
3446 uses : actions/upload-artifact@v3
3749 name : build-reports
3850 path : build/reports/
3951
40- - name : Upload coverage to Codecov
41- uses : codecov/codecov-action@v3
42- with :
43- file : ./build/reports/jacoco/report.xml
44-
4552 - name : Upload build artifact
4653 uses : actions/upload-artifact@v3
4754 with :
Original file line number Diff line number Diff line change 11# kafka-gitops
22
3- ![ Java CI] ( https://github.com/joschi/kafka-gitops/workflows/Java%20CI/badge.svg ) [ ![ Maintainability] ( https://api.codeclimate.com/v1/badges/373371aac3f69c292031/maintainability )] ( https://codeclimate.com/github/devshawn/kafka-gitops/maintainability ) [ ![ License] ( https://img.shields.io/badge/License-Apache%202.0-blue.svg )] ( LICENSE )
3+ [ ![ Java CI] ( https://github.com/joschi/kafka-gitops/workflows/Java%20CI/badge.svg )] ( https://github.com/joschi/kafka-gitops/actions/workflows/gradle.yml )
4+ [ ![ Maintainability] ( https://api.codeclimate.com/v1/badges/373371aac3f69c292031/maintainability )] ( https://codeclimate.com/github/devshawn/kafka-gitops/maintainability )
5+ [ ![ License] ( https://img.shields.io/badge/License-Apache%202.0-blue.svg )] ( LICENSE )
46
57Manage Apache Kafka topics and ACLs through a desired state file.
68
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ plugins {
66 id ' jacoco'
77 id ' org.inferred.processors' version ' 3.7.0'
88 id ' com.github.johnrengelman.shadow' version ' 7.1.2'
9+ id " org.sonarqube" version " 3.4.0.2513"
910}
1011
1112group ' com.devshawn'
@@ -87,3 +88,11 @@ task buildRelease(type: Zip, group: "build") {
8788 dependsOn buildExecutableJar
8889 from(" $buildDir /output" )
8990}
91+
92+ sonarqube {
93+ properties {
94+ property " sonar.projectKey" , " joschi_kafka-gitops"
95+ property " sonar.organization" , " joschi"
96+ property " sonar.host.url" , " https://sonarcloud.io"
97+ }
98+ }
You can’t perform that action at this time.
0 commit comments