From e0acd6d23992da5f1f338c019ce6c08c4936dc2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Montan=CC=83ana?= Date: Thu, 19 May 2022 12:30:29 +0200 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 056e335..ef027da 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,8 +39,10 @@ jobs: coverage run -m xmlrunner -v mufs.tests -o .report coverage xml -i -o .report/coverage.xml coverage report -m --fail-under=100 - - run: echo "project_version=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV - - uses: sonarsource/sonarqube-scan-action@master + - name: Get project version + run: echo "project_version=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV + - name: SonarQube scanner + uses: sonarsource/sonarqube-scan-action@master env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} @@ -49,9 +51,11 @@ jobs: -Dsonar.projectVersion=${{ env.project_version }} -Dsonar.python.coverage.reportPaths=.report/coverage.xml -Dsonar.python.xunit.reportPath=.report/TEST* + -Dsonar.sources=. # If you wish to fail your job when the Quality Gate is red, uncomment the # following lines. This would typically be used to fail a deployment. - - uses: sonarsource/sonarqube-quality-gate-action@master + - name: Quality Gate + uses: sonarsource/sonarqube-quality-gate-action@master timeout-minutes: 5 env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}