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 cf99f29 commit 751db75
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/call-golang-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,23 +117,23 @@ jobs:
- id: sonar
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 \
-Dsonar.go.coverage.reportPaths=build/coverage.out
tree ~/.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
-Dsonar.go.coverage.reportPaths=build/coverage.out && tree ~/.sonar

- uses: actions/cache/save@v4
if: always()
Expand Down

0 comments on commit 751db75

Please sign in to comment.