Skip to content

Commit

Permalink
Run sonar as a separate job to avoid PRs running it
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov authored Aug 5, 2024
1 parent f102f99 commit db406e6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build
run: ./gradlew spotlessCheck build jacocoTestReport sonar
run: ./gradlew spotlessCheck build
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Run Sonar
if: secrets.SONAR_TOKEN != ''
run: ./gradlew jacocoTestReport sonar
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 comments on commit db406e6

Please sign in to comment.