From b4bf425a0940d833f31fa919fc10cab8a89703ce Mon Sep 17 00:00:00 2001 From: John Niang Date: Tue, 30 Jan 2024 16:37:51 +0800 Subject: [PATCH] Remove analyzing code step in test job Because we have enabled Automatic Analysis Signed-off-by: John Niang --- .github/workflows/halo.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/halo.yaml b/.github/workflows/halo.yaml index a812f232b..ab1a550ba 100644 --- a/.github/workflows/halo.yaml +++ b/.github/workflows/halo.yaml @@ -33,12 +33,7 @@ jobs: run: ./gradlew check - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 - - name: Analyze code - if: ${{ github.event_name == 'push' && env.SONAR_TOKEN != '' }} # Due to inability to access secrets during PR, only the code pushed into the branch can be analyzed. - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: ./gradlew sonar --info + build: runs-on: ubuntu-latest if: always() && (needs.test.result == 'skipped' || needs.test.result == 'success')