Skip to content

Commit

Permalink
ci: Configuring SonarCloud analysis
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed May 29, 2021
1 parent 3adbfc1 commit 8d6d3ed
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,22 @@ jobs:
- name: Codecov
uses: codecov/codecov-action@v1

sonarcloud:
name: SonarCloud
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: SonarCloud
if: env.SONAR_TOKEN
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

package:
name: Docker
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
Expand Down

0 comments on commit 8d6d3ed

Please sign in to comment.