From 69e48e3c4bd91feba28f29ddc5c84451e55927f2 Mon Sep 17 00:00:00 2001 From: Vincent Boutour Date: Sat, 29 May 2021 09:56:08 +0200 Subject: [PATCH] ci: Configuring SonarCloud analysis Signed-off-by: Vincent Boutour --- .github/workflows/build.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6d2edfa3..2d05e7cb 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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]')"