Skip to content

Commit 8a2165d

Browse files
author
Gilles Grousset
committed
fix: active java version switch
1 parent 120222d commit 8a2165d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/analyze.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
- name: 🪲 Run Sonar
3434
run: |
3535
sudo apt-get install -y openjdk-17-jdk
36+
sudo update-alternatives --set java /usr/lib/jvm/java-17-openjdk-amd64/bin/java
37+
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
3638
wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-6.1.0.4477.zip
3739
unzip sonar-scanner-cli-6.1.0.4477.zip
3840
./sonar-scanner-6.1.0.4477/bin/sonar-scanner \

0 commit comments

Comments
 (0)