Skip to content

Commit 68811ac

Browse files
author
Gilles Grousset
committed
refact: removed sonar action
1 parent 00938f9 commit 68811ac

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/analyze.yml

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

33+
- name: 🛠️ Install sonar-scanner
34+
run: |
35+
sudo apt-get install -y openjdk-11-jdk
36+
wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-6.1.0.4477-linux-x64.zip
37+
unzip sonar-scanner-cli-6.1.0.4477-linux-x64.zip
38+
export PATH=$PATH:$PWD/sonar-scanner-6.1.0.4477-linux/bin
39+
3340
- name: 🪲 Run Sonar
34-
uses: sonarsource/sonarqube-scan-action@master
35-
env:
36-
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}}
37-
SONAR_HOST_URL: ${{secrets.SONAR_HOST_URL}}
41+
run: sonar-scanner -Dsonar.token=${{secrets.SONAR_TOKEN}} -Dsonar.host.url=${{secrets.SONAR_HOST_URL}}
3842

0 commit comments

Comments
 (0)