Add SonarQube #22

Merged
luketainton merged 6 commits from sonar into main 2022-08-13 20:02:15 +00:00
Showing only changes of commit e1997cbca1 - Show all commits

View File

@@ -17,7 +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
/home/runner/go/bin/golangci-lint run --out-format checkstyle -D deadcode,unused --build-tags=integration --timeout 10m --issues-exit-code 0 ./... > ../report.xml
$(go env GOPATH)/bin/golangci-lint run --out-format checkstyle -D deadcode,unused --build-tags=integration --timeout 10m --issues-exit-code 0 ./... > report.xml
sed -i 's+<file name="+<file name="go/+g' report.xml
cat report.xml
- uses: sonarsource/sonarqube-scan-action@master