14
.github/workflows/check.yml
vendored
14
.github/workflows/check.yml
vendored
@@ -7,6 +7,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Android SDK Tools
|
||||
uses: android-actions/setup-android@v2
|
||||
@@ -18,8 +20,18 @@ jobs:
|
||||
java-version: '17'
|
||||
cache: 'gradle'
|
||||
|
||||
- name: Cache SonarCloud packages
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.sonar/cache
|
||||
key: ${{ runner.os }}-sonar
|
||||
restore-keys: ${{ runner.os }}-sonar
|
||||
|
||||
- name: Run tests
|
||||
run: ./gradlew check --no-daemon
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
run: ./gradlew check sonarqube --no-daemon
|
||||
|
||||
- name: Publish test reports
|
||||
uses: mikepenz/action-junit-report@v2
|
||||
|
||||
@@ -8,6 +8,7 @@ plugins {
|
||||
id 'com.google.gms.google-services'
|
||||
id 'com.google.firebase.crashlytics'
|
||||
id 'com.google.firebase.firebase-perf'
|
||||
id "org.sonarqube" version "3.3"
|
||||
}
|
||||
|
||||
android {
|
||||
@@ -220,3 +221,11 @@ dependencies {
|
||||
debugImplementation "com.squareup.leakcanary:leakcanary-android:2.9.1"
|
||||
|
||||
}
|
||||
|
||||
sonarqube {
|
||||
properties {
|
||||
property "sonar.projectKey", "kirmanak_Mealient"
|
||||
property "sonar.organization", "kirmanak"
|
||||
property "sonar.host.url", "https://sonarcloud.io"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user