Skip to content

Commit 68a696a

Browse files
SONARJAVA-6247 Use orchestrator-cache in autoscan tests (#5563)
Co-authored-by: Dorian Burihabwa <75226315+dorian-burihabwa-sonarsource@users.noreply.github.com>
1 parent cd2465e commit 68a696a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ jobs:
299299
contents: write
300300
env:
301301
BUILD_NUMBER: ${{ needs.build.outputs.build-number }}
302+
SQ_VERSION: LATEST_RELEASE
302303
steps:
303304
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
304305
# For now, the autoscan job need to execute two mvn commands:
@@ -328,6 +329,10 @@ jobs:
328329
mvn clean compile test-compile --batch-mode
329330
- name: Select Java 21
330331
run: mise use java@21
332+
- name: Orchestrator Cache
333+
uses: ./.github/actions/orchestrator-cache
334+
with:
335+
sq-version: ${{ env.SQ_VERSION }}
331336
- name: Run autoscan tests
332337
env:
333338
SONAR_HOST_URL: ${{ fromJSON(steps.secrets.outputs.vault).SONAR_HOST_URL }}
@@ -337,7 +342,7 @@ jobs:
337342
run: >
338343
mvn clean package --batch-mode --errors --show-version
339344
--activate-profiles it-autoscan
340-
-Dsonar.runtimeVersion=LATEST_RELEASE
345+
-Dsonar.runtimeVersion="$SQ_VERSION"
341346
-Dmaven.test.redirectTestOutputToFile=false
342347
-Dparallel=methods
343348
-DuseUnlimitedThreads=true

0 commit comments

Comments
 (0)