From c6379d4780af9f2ac269d4af525b75561f69ae26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Arturo=20Cabral=20Mej=C3=ADa?= <me@ricardocabral.io> Date: Thu, 17 Nov 2022 10:00:44 -0500 Subject: [PATCH] chore(ci): run sonarcloud after all tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io> --- .github/workflows/checks.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 61ef289..b356b53 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -11,18 +11,6 @@ concurrency: cancel-in-progress: true jobs: - sonarcloud: - name: Sonarcloud - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: SonarCloud Scan - uses: sonarsource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} lint: name: Lint runs-on: ubuntu-latest @@ -106,6 +94,20 @@ jobs: parallel: true github-token: ${{ secrets.GITHUB_TOKEN }} continue-on-error: true + + sonarcloud: + name: Sonarcloud + needs: [test-units-and-cover, test-integrations-and-cover] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: SonarCloud Scan + uses: sonarsource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} post-tests: name: Post Tests needs: [test-units-and-cover, test-integrations-and-cover]