Skip to content

Commit c08e6f1

Browse files
committed
Reuse gradle-build cache for Sonar
1 parent 909a905 commit c08e6f1

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

.github/workflows/gradle-build.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ jobs:
8383

8484
code-quality:
8585
name: Code Quality with Sonar
86-
needs: check-changes
87-
if: ${{ needs.check-changes.outputs.source-changes == 'true' }}
86+
needs: [gradle-build, check-changes]
87+
#if: ${{ needs.check-changes.outputs.source-changes == 'true' }}
8888
runs-on: ubuntu-latest
8989
steps:
9090
- uses: actions/checkout@v5
@@ -102,14 +102,10 @@ jobs:
102102
build-scan-publish: true
103103
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
104104
build-scan-terms-of-use-agree: "yes"
105-
- name: Setup Testcontainers Cloud Client
106-
uses: atomicjar/testcontainers-cloud-setup-action@v1
107-
with:
108-
token: ${{ secrets.TC_CLOUD_TOKEN }}
109105
- name: Publish Sonar report
110106
env:
111107
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
112-
run: ./gradlew check sonar
108+
run: ./gradlew sonar
113109
- name: Terminate Testcontainers Cloud Client active sessions
114110
uses: atomicjar/testcontainers-cloud-setup-action@v1
115111
with:

0 commit comments

Comments
 (0)