Skip to content

Commit 7c0e7fc

Browse files
author
Gilles Grousset
committed
fix: java version
1 parent 8a2165d commit 7c0e7fc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/analyze.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,14 @@ jobs:
3030
- name: 🧪 Run Tests
3131
run: flutter test --machine --coverage > tests.output
3232

33+
- name: 🍵 Setup Java
34+
uses: actions/setup-java@v4
35+
with:
36+
distribution: 'temurin'
37+
java-version: '17'
38+
3339
- name: 🪲 Run Sonar
3440
run: |
35-
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
3841
wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-6.1.0.4477.zip
3942
unzip sonar-scanner-cli-6.1.0.4477.zip
4043
./sonar-scanner-6.1.0.4477/bin/sonar-scanner \

0 commit comments

Comments
 (0)