bosun.org@v0.0.0-20210513094433-e25bc3e69a1f/.github/workflows/sonarcloud.yml (about) 1 name: sonarcloud 2 3 on: 4 push: 5 branches: [ master ] 6 jobs: 7 sonarcloud: 8 name: Sonar static analysis 9 runs-on: ubuntu-18.04 10 steps: 11 - name: Set up Go 12 uses: actions/setup-go@v2 13 with: 14 go-version: ^1.13 15 id: go 16 - name: Checkout 17 uses: actions/checkout@v2 18 with: 19 # Disabling shallow clone is recommended for improving relevancy of reporting 20 fetch-depth: 0 21 - name: Install dependencies 22 # Need to install Typescript which is required by SonarCloud ro tun its checks 23 run: make deps testdeps 24 - name: Generate coverage report 25 run: make test-coverprofile 26 - name: SonarCloud Scan 27 uses: sonarsource/sonarcloud-github-action@master 28 env: 29 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 30 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}