Skip to content

Commit 4144e2b

Browse files
finalizing
1 parent 24cda94 commit 4144e2b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,15 @@ jobs:
134134
135135
test-analyze:
136136
name: Test Analyze
137-
# needs:
138-
# - build
137+
needs:
138+
- build
139+
if: ${{ needs.build.outputs.deployed }}
139140
runs-on: github-ubuntu-latest-m
140141
permissions:
141142
id-token: write
142143
contents: write
143144
env:
144-
BUILD_NUMBER: 41697
145+
BUILD_NUMBER: ${{ needs.build.outputs.build-number }}
145146
steps:
146147
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
147148
- uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0
@@ -160,7 +161,12 @@ jobs:
160161
run: |
161162
# ignore duplications in the SE engine plugin, as it will be moved away from sonar-java at some point
162163
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/**,"
163-
cd docs/java-custom-rules-example
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: |
164170
mvn clean package -f pom_SQ_10_6_LATEST.xml --batch-mode
165171
- name: Check License Compliance
166172
run: |

0 commit comments

Comments
 (0)