From 11be05b8d1d9b9901a29d4ff60526b491f1f69ea Mon Sep 17 00:00:00 2001 From: Oloruntobi Olurombi Date: Thu, 12 Sep 2024 17:22:22 +0100 Subject: [PATCH] add conditional to sonarcloud --- .github/workflows/regtech-app.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/regtech-app.yml b/.github/workflows/regtech-app.yml index 2376ff7..a8c40d7 100644 --- a/.github/workflows/regtech-app.yml +++ b/.github/workflows/regtech-app.yml @@ -38,6 +38,10 @@ jobs: -Dsonar.cpp.file.suffixes=- -Dsonar.objc.file.suffixes=- + - name: Check SonarCloud Quality Gate + run: | + curl -u ${{ secrets.SONAR_TOKEN }} "https://sonarcloud.io/api/qualitygates/project_status?projectKey=${{ secrets.PROJECT_KEY }}" | grep '"status":"OK"' || exit 1 + UnitAndIntegrationTests: name: Unit and Integration Tests on Source Code runs-on: ubuntu-latest