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 6ced3e2 commit 69e48e3
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 @@ -37,6 +37,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 69e48e3

Please sign in to comment.