Merge pull request #7552 from XiangRongLin/readd_sonar

Readd sonar CI job
This commit is contained in:
XiangRongLin 2021-12-20 03:32:28 -05:00 committed by GitHub
commit 96eb1425f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 23 deletions

View File

@ -74,29 +74,29 @@ jobs:
emulator-build: 7425822 emulator-build: 7425822
script: ./gradlew connectedCheck script: ./gradlew connectedCheck
# sonar: sonar:
# runs-on: ubuntu-latest runs-on: ubuntu-latest
# steps: steps:
# - uses: actions/checkout@v2 - uses: actions/checkout@v2
# with: with:
# fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
# - name: Set up JDK 11 - name: Set up JDK 11
# uses: actions/setup-java@v2 uses: actions/setup-java@v2
# with: with:
# java-version: 11 # Sonar requires JDK 11 java-version: 11 # Sonar requires JDK 11
# distribution: "temurin" distribution: "temurin"
# cache: 'gradle' cache: 'gradle'
# - name: Cache SonarCloud packages - name: Cache SonarCloud packages
# uses: actions/cache@v2 uses: actions/cache@v2
# with: with:
# path: ~/.sonar/cache path: ~/.sonar/cache
# key: ${{ runner.os }}-sonar key: ${{ runner.os }}-sonar
# restore-keys: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar
# - name: Build and analyze - name: Build and analyze
# env: env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# run: ./gradlew build sonarqube --info run: ./gradlew build sonarqube --info