Add SonarQube
This commit is contained in:
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -17,9 +17,7 @@ jobs:
|
|||||||
- name: Create golangci-lint report
|
- name: Create golangci-lint report
|
||||||
run: |
|
run: |
|
||||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.42.1
|
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
|
/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
|
sed -i 's+<file name="+<file name="go/+g' report.xml
|
||||||
cat report.xml
|
cat report.xml
|
||||||
- uses: sonarsource/sonarqube-scan-action@master
|
- uses: sonarsource/sonarqube-scan-action@master
|
||||||
|
|||||||
Reference in New Issue
Block a user