From fcb0634059c4d0879d760b8700e5863de5848b1b Mon Sep 17 00:00:00 2001 From: Rashidi Zin Date: Fri, 8 Aug 2025 08:52:46 +0800 Subject: [PATCH] Extract Sonar to its own task --- .github/workflows/gradle-build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gradle-build.yml b/.github/workflows/gradle-build.yml index b759305e..a79bde98 100644 --- a/.github/workflows/gradle-build.yml +++ b/.github/workflows/gradle-build.yml @@ -79,8 +79,11 @@ jobs: - name: Run CI build env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: ./gradlew build jacocoTestReport --configuration-cache + - name: Publish Sonar report + env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: ./gradlew build jacocoTestReport sonar --configuration-cache + run: ./gradlew sonar - name: Terminate Testcontainers Cloud Client active sessions uses: atomicjar/testcontainers-cloud-setup-action@v1 with: