Use manual sonar...
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user