Skip to content

Commit

Permalink
ci: add sonar scanner to ci_build
Browse files Browse the repository at this point in the history
  • Loading branch information
BeeHiveJava committed May 16, 2021
1 parent 6bb72ae commit 59104ff
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,25 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{github.workspace}}/codecover/lcov.info

analyze:
name: 🔍 Analyze sources (CI)
runs-on: ubuntu-latest
steps:
- name: 📤 Checkout the repository
uses: actions/checkout@main
with:
# Shallow clones should be disabled for a better relevancy of analysis
fetch-depth: 0

- name: 🔍 Analyze code
uses: highbyte/sonarscan-dotnet@v2.1-beta
env:
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
sonarOrganization: net-daemon
sonarProjectKey: net-daemon_netdaemon
sonarProjectName: netdaemon

dotnetDisableTests: true

0 comments on commit 59104ff

Please sign in to comment.