@@ -131,3 +131,48 @@ jobs:
131131 run : |
132132 cd its/plugin
133133 mvn package --batch-mode -Pit-plugin -Dsonar.runtimeVersion=${{ matrix.sq_version }} -Dmaven.test.redirectTestOutputToFile=false -B -e -V -Dparallel=classes -DuseUnlimitedThreads=true
134+
135+ test-analyze :
136+ name : Test Analyze
137+ needs :
138+ - build
139+ if : ${{ needs.build.outputs.deployed }}
140+ runs-on : github-ubuntu-latest-m
141+ permissions :
142+ id-token : write
143+ contents : write
144+ env :
145+ BUILD_NUMBER : ${{ needs.build.outputs.build-number }}
146+ steps :
147+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
148+ - uses : jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0
149+ with :
150+ version : 2025.7.12
151+ - uses : SonarSource/vault-action-wrapper@v3
152+ id : secrets
153+ with :
154+ secrets : |
155+ development/kv/data/next url | SONAR_HOST_URL;
156+ development/kv/data/next token | SONAR_TOKEN;
157+ - name : Test Analyze
158+ env :
159+ SONAR_HOST_URL : ${{ fromJSON(steps.secrets.outputs.vault).SONAR_HOST_URL }}
160+ SONAR_TOKEN : ${{ fromJSON(steps.secrets.outputs.vault).SONAR_TOKEN }}
161+ run : |
162+ # ignore duplications in the SE engine plugin, as it will be moved away from sonar-java at some point
163+ PULL_REQUEST_SHA=$GIT_SHA1 mvn clean verify sonar:sonar --batch-mode -P-deploy-sonarsource,-release,-sign -Dmaven.deploy.skip=true -Dsonar.analysisCache.enabled=true -Dsonar.sca.exclusions="**/test/files/**, **/test/resources/**, its/plugin/projects/**, java-checks-test-sources/**, its/sources/**,"
164+ - name : Build Java Custom Rules Example
165+ env :
166+ SONAR_HOST_URL : ${{ fromJSON(steps.secrets.outputs.vault).SONAR_HOST_URL }}
167+ SONAR_TOKEN : ${{ fromJSON(steps.secrets.outputs.vault).SONAR_TOKEN }}
168+ working-directory : docs/java-custom-rules-example
169+ run : |
170+ mvn clean package -f pom_SQ_10_6_LATEST.xml --batch-mode
171+ - name : Check License Compliance
172+ run : |
173+ # See https://xtranet.sonarsource.com/display/DEV/Open+Source+Licenses
174+ mvn org.codehaus.mojo:license-maven-plugin:aggregate-add-third-party \
175+ --batch-mode \
176+ "-Dlicense.missingFile=${PWD}/missing-dep-licenses.properties" \
177+ -DuseMissingFile \
178+ "-Dlicense.overrideUrl=file://${PWD}/override-dep-licenses.properties"
0 commit comments