Merge pull request #7552 from XiangRongLin/readd_sonar
Readd sonar CI job
This commit is contained in:
commit
96eb1425f8
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue