From f1998a1eda9bbc7b515f7588b868beb34472ebff Mon Sep 17 00:00:00 2001 From: Stefan Bechtold Date: Tue, 16 Jul 2024 00:18:52 +0200 Subject: [PATCH] run sonar cloud test before coverage report generation --- .github/workflows/buildandtest.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/buildandtest.yml b/.github/workflows/buildandtest.yml index c9100b6..dd263bc 100644 --- a/.github/workflows/buildandtest.yml +++ b/.github/workflows/buildandtest.yml @@ -81,6 +81,11 @@ jobs: mkdir -p "$HYBRIS_LOG_DIR/junit" touch "$HYBRIS_LOG_DIR/junit/jacoco-integration.exec" fi + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - name: Coverage Report env: TOKEN: ${{ secrets.CODECOV_TOKEN }} @@ -100,8 +105,3 @@ jobs: else ./codecov -f $HYBRIS_LOG_DIR/junit/jacoco.xml -Z --build $GITHUB_RUN_ID --tag GITHUB_REF_NAME -t $TOKEN fi - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}