From d27b9491f382ccc959f935077d74d18aa618b333 Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Tue, 19 Aug 2025 16:40:33 +0200 Subject: [PATCH] Use manual sonar... --- .gitea/workflows/go-test.yaml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/go-test.yaml b/.gitea/workflows/go-test.yaml index 861d371..b317594 100644 --- a/.gitea/workflows/go-test.yaml +++ b/.gitea/workflows/go-test.yaml @@ -28,7 +28,8 @@ jobs: go vet ./... go test -coverprofile=coverprofile.out -json -v ./... > gotest.json # - uses: actions/upload-artifact@v4 - - uses: christopherhx/gitea-upload-artifact@v4 + - name: Upload artifact + uses: christopherhx/gitea-upload-artifact@v4 with: name: tests-results path: | @@ -41,13 +42,20 @@ jobs: runs-on: ubuntu-latest needs: tests steps: - - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4 #- uses: actions/download-artifact@v4 - - uses: christopherhx/gitea-download-artifact@v4 + - name: Download artifact + uses: christopherhx/gitea-download-artifact@v4 with: name: tests-results - - name: SonarQube Scan - uses: SonarSource/sonarqube-scan-action@v5.2.0 - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} + - name: Sonar + run: | + export SONAR_SCANNER_VERSION=7.2.0.5079 + export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux-x64 + curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux-x64.zip + unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/ + export PATH=$SONAR_SCANNER_HOME/bin:$PATH + sonar-scanner \ + -Dsonar.organization=katenary \ + -Dsonar.projectKey=katenary_katenary