Use manual sonar...
Some checks failed
Go-Tests / tests (push) Successful in 2m2s
Go-Tests / sonar (push) Failing after 18s

This commit is contained in:
2025-08-19 16:40:33 +02:00
parent 763b204760
commit d27b9491f3

View File

@@ -28,7 +28,8 @@ jobs:
go vet ./... go vet ./...
go test -coverprofile=coverprofile.out -json -v ./... > gotest.json go test -coverprofile=coverprofile.out -json -v ./... > gotest.json
# - uses: actions/upload-artifact@v4 # - uses: actions/upload-artifact@v4
- uses: christopherhx/gitea-upload-artifact@v4 - name: Upload artifact
uses: christopherhx/gitea-upload-artifact@v4
with: with:
name: tests-results name: tests-results
path: | path: |
@@ -41,13 +42,20 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: tests needs: tests
steps: steps:
- uses: actions/checkout@v4 - name: Checkout
uses: actions/checkout@v4
#- uses: actions/download-artifact@v4 #- uses: actions/download-artifact@v4
- uses: christopherhx/gitea-download-artifact@v4 - name: Download artifact
uses: christopherhx/gitea-download-artifact@v4
with: with:
name: tests-results name: tests-results
- name: SonarQube Scan - name: Sonar
uses: SonarSource/sonarqube-scan-action@v5.2.0 run: |
env: export SONAR_SCANNER_VERSION=7.2.0.5079
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux-x64
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} 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