File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Run lints and build
2
+ on :
3
+ pull_request :
4
+ push :
5
+ branches :
6
+ - master
7
+ jobs :
8
+ build_and_checks :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+ - name : Cache files
13
+ uses : actions/cache@v2
14
+ with :
15
+ path : |
16
+ ~/.gradle/caches
17
+ ~/.gradle/wrapper
18
+ ~/.android/build-cache
19
+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}-${{ hashFiles('**/gradle-wrapper.properties') }}
20
+ restore-keys : |
21
+ ${{ runner.os }}-gradle-
22
+ - name : Gradle Initialization
23
+ run : ./gradlew
24
+ - name : Detekt
25
+ run : ./gradlew detekt
26
+ - name : Upload Detekt report
27
+ uses : actions/upload-artifact@v2
28
+ if : failure()
29
+ with :
30
+ name : Detekt report
31
+ path : build/reports/detekt/detekt.html
32
+ - name : Build
33
+ run : ./gradlew build
You can’t perform that action at this time.
0 commit comments