diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 52ab39d7..645a0af9 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -57,5 +57,12 @@ jobs: name: ns4kafka path: ${{ github.workspace }}/build/libs/ns4kafka-${{ steps.build_jar.outputs.current_version }}.jar + - name: Sonar + if: github.event.pull_request.head.repo.full_name == github.repository + run: ./gradlew jacocoTestReport sonar + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + - name: Docker run: ./gradlew dockerBuild \ No newline at end of file