Skip to content

Commit

Permalink
Update SonarQube.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
GearBoxFox authored Jan 13, 2024
1 parent 62abf9a commit ee16dd9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/SonarQube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ on:
types: [edited, submitted]
workflow_dispatch:


jobs:
build:
name: SonarQube Build
name: Build
runs-on: ubuntu-latest
permissions: read-all
steps:
- uses: actions/[email protected]
with:
Expand All @@ -23,10 +23,8 @@ jobs:
uses: actions/[email protected]
with:
java-version: 17
distribution: 'temurin'
cache: 'gradle'
- name: Cache SonarQube packages
uses: actions/cache@v3.2.5
uses: actions/cache@v1
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
Expand All @@ -39,7 +37,10 @@ jobs:
restore-keys: ${{ runner.os }}-gradle
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
run: ./gradlew build sonar --info

SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
run: ./gradlew build sonar --info

0 comments on commit ee16dd9

Please sign in to comment.