File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,12 +14,42 @@ concurrency:
1414 group : build-${{ github.event.pull_request.number || github.ref }}
1515 cancel-in-progress : true
1616
17+ env :
18+ JVM_OPTS : -Xmx3200m
19+
1720jobs :
18- build :
19- timeout-minutes : 40
21+ check :
22+ timeout-minutes : 30
23+ runs-on : ubuntu-latest
24+ steps :
25+ - name : Checkout
26+ uses : actions/checkout@v2
27+ - name : Set up JDK
28+ uses : actions/setup-java@v2
29+ with :
30+ java-version : 11
31+ distribution : ' adopt'
32+ - name : Cache dependencies
33+ uses : actions/cache@v2
34+ with :
35+ path : |
36+ ~/.gradle/caches
37+ ~/.gradle/wrapper
38+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
39+ restore-keys : |
40+ ${{ runner.os }}-gradle-
41+ - name : Static analysis
42+ run : |
43+ ./gradlew app:staticAnalysis app:collectSarifReports --continue --no-daemon
44+ - name : Upload Report
45+ uses : github/codeql-action/upload-sarif@v1
46+ if : ${{ always() }}
47+ with :
48+ sarif_file : app/build/reports/sarif/
49+ test :
50+ timeout-minutes : 30
2051 runs-on : ubuntu-latest
2152 env :
22- JVM_OPTS : -Xmx3200m
2353 CC_TEST_REPORTER_ID : 4c45cf8b47a2ab0a5ae149b266e533747e8c3330aa3f5e7d2898d460c6d11562
2454 steps :
2555 - name : Checkout
@@ -33,10 +63,11 @@ jobs:
3363 uses : actions/cache@v2
3464 with :
3565 path : |
36- ~/.gradle
37- key : jars-{{ hashFiles('build.gradle.kts') }}-{{ hashFiles('app/build.gradle.kts') }}
38- - name : Lint
39- run : ./gradlew lintKotlin --continue --no-daemon
66+ ~/.gradle/caches
67+ ~/.gradle/wrapper
68+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
69+ restore-keys : |
70+ ${{ runner.os }}-gradle-
4071 - name : Run Tests
4172 run : |
4273 ./gradlew testGithubDebugUnitTest --continue --no-daemon
Original file line number Diff line number Diff line change @@ -185,6 +185,10 @@ android {
185185 }
186186 }
187187
188+ lintOptions {
189+ isAbortOnError = false
190+ }
191+
188192 lint {
189193 isWarningsAsErrors = true
190194 lintConfig = rootProject.file(" config/lint.xml" )
You can’t perform that action at this time.
0 commit comments