Add SonarQube

This commit is contained in:
2022-08-13 20:14:01 +01:00
parent 81afc26e53
commit ff4502d16c

View File

@@ -17,9 +17,7 @@ jobs:
- name: Create golangci-lint report
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.42.1
cd go
/home/runner/go/bin/golangci-lint run --out-format checkstyle -D deadcode,unused --build-tags=integration --timeout 10m --issues-exit-code 0 ./... > ../report.xml
cd ..
sed -i 's+<file name="+<file name="go/+g' report.xml
cat report.xml
- uses: sonarsource/sonarqube-scan-action@master