Skip to content

Commit

Permalink
multi-line command
Browse files Browse the repository at this point in the history
  • Loading branch information
heliannuuthus committed Mar 26, 2024
1 parent e600019 commit 5e8d054
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/call-golang-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,21 +118,21 @@ jobs:
if: ${{ steps.environments.outputs.sonar_enabled == 'true'}}
name: sonar
run: |
sonar-scanner
-Dsonar.host.url=${{ secrets.SONAR_HOST_URL }}
-Dsonar.token=${{ secrets.SONAR_TOKEN }}
-Dsonar.language=go
-Dsonar.plugins.downloadOnlyRequired=true
-Dsonar.sourceEncoding=UTF-8
-Dsonar.exclusions=**/*_test.go,**/vendor/**
-Dsonar.test.inclusions=**/*_test.go
-Dsonar.test.exclusions=**/vendor/**
-Dsonar.pullrequest.key=${{github.event.pull_request.number}}
-Dsonar.pullrequest.branch=${{github.head_ref}}
-Dsonar.pullrequest.base=${{github.base_ref}}
-Dsonar.projectKey=${{ steps.environments.outputs.project }}
-Dsonar.projectVersion=${{ steps.environments.outputs.version }}
-Dsonar.go.test.reportPaths=build/report.xml
sonar-scanner \
-Dsonar.host.url=${{ secrets.SONAR_HOST_URL }} \
-Dsonar.token=${{ secrets.SONAR_TOKEN }} \
-Dsonar.language=go \
-Dsonar.plugins.downloadOnlyRequired=true \
-Dsonar.sourceEncoding=UTF-8 \
-Dsonar.exclusions=**/*_test.go,**/vendor/** \
-Dsonar.test.inclusions=**/*_test.go \
-Dsonar.test.exclusions=**/vendor/** \
-Dsonar.pullrequest.key=${{github.event.pull_request.number}} \
-Dsonar.pullrequest.branch=${{github.head_ref}} \
-Dsonar.pullrequest.base=${{github.base_ref}} \
-Dsonar.projectKey=${{ steps.environments.outputs.project }} \
-Dsonar.projectVersion=${{ steps.environments.outputs.version }} \
-Dsonar.go.test.reportPaths=build/report.xml \
-Dsonar.go.coverage.reportPaths=build/coverage.out
tree ~/.sonar
Expand Down

0 comments on commit 5e8d054

Please sign in to comment.