Skip to content

Commit

Permalink
Use sonarqube with >= Java17
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuma-t authored Feb 16, 2024
1 parent cd67d9c commit 9c47e1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
distribution: temurin
cache: gradle
- name: Cache SonarCloud packages
if: matrix.java-version != 11
if: matrix.java-version >= 17
uses: actions/cache@v3
with:
path: ~/.sonar/cache
Expand All @@ -41,7 +41,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
if: matrix.java-version == 11 && env.SONAR_TOKEN != ''
if: matrix.java-version >= 17 && env.SONAR_TOKEN != ''
run: ./gradlew --no-daemon --info --stacktrace sonarqube -Dsonar.verbose=true -Dsonar.login=$SONAR_TOKEN
- uses: actions/upload-artifact@v3
if: failure()
Expand Down

1 comment on commit 9c47e1d

@kazuma-t
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix #218

Please sign in to comment.