@@ -22,15 +22,31 @@ jobs:
22
22
java-version : 11.0.7
23
23
24
24
# # Actual task
25
- - name : Assemble with gradle — make sure everything builds
26
- run : ./gradlew assemble --no-daemon --stacktrace
25
+ - uses : burrunan/gradle-cache-action@v1
26
+ name : Assemble with gradle — make sure everything builds
27
+ with :
28
+ gradle-dependencies-cache-key : |
29
+ gradle/libs.versions.toml
30
+ arguments : |
31
+ assemble --no-daemon --stacktrace
32
+ concurrent : true
33
+ gradle-build-scan-report : false
34
+ gradle-distribution-sha-256-sum-warning : false
27
35
28
36
# This should ideally be done as a Check job below, but it needs to be done as a separate
29
37
# step after running assemble. Heckin' ridikalus.
30
38
# Probably fixed in dokka 1.4.10, but we can't move to kotlin 1.4 yet.
31
39
# https://github.com/square/workflow/issues/1152.
32
- - name : Run dokka to validate kdoc
33
- run : ./gradlew siteDokka --build-cache --no-daemon --stacktrace
40
+ - uses : burrunan/gradle-cache-action@v1
41
+ name : Run dokka to validate kdoc
42
+ with :
43
+ gradle-dependencies-cache-key : |
44
+ gradle/libs.versions.toml
45
+ arguments : |
46
+ siteDokka --build-cache --no-daemon --stacktrace
47
+ concurrent : true
48
+ gradle-build-scan-report : false
49
+ gradle-distribution-sha-256-sum-warning : false
34
50
35
51
# These are all pretty quick so we run them on a single shard. Fewer shards, less queueing.
36
52
check :
@@ -46,13 +62,16 @@ jobs:
46
62
java-version : 11.0.7
47
63
48
64
# # Actual task
49
- - name : Check with Gradle
50
- run : ./gradlew test apiCheck lint ktlintCheck jmhJar --no-daemon --stacktrace --continue
51
- # Decoder:
52
- # --continue: Run all checks, even if some fail.
53
- # test: unit tests
54
- # apiCheck: binary compatibility
55
- # jmhJar: Build the JMH benchmarks to verify, but don't run them
65
+ - uses : burrunan/gradle-cache-action@v1
66
+ name : Check with Gradle
67
+ with :
68
+ gradle-dependencies-cache-key : |
69
+ gradle/libs.versions.toml
70
+ arguments : |
71
+ test apiCheck lint ktlintCheck jmhJar --no-daemon --stacktrace --continue
72
+ concurrent : true
73
+ gradle-build-scan-report : false
74
+ gradle-distribution-sha-256-sum-warning : false
56
75
57
76
instrumentation-tests :
58
77
name : Instrumentation tests
73
92
with :
74
93
java-version : 11.0.7
75
94
95
+ # # Build before running tests, using cache.
96
+ - uses : burrunan/gradle-cache-action@v1
97
+ name : Build instrumented tests
98
+ with :
99
+ gradle-dependencies-cache-key : |
100
+ gradle/libs.versions.toml
101
+ arguments : |
102
+ assembleDebugAndroidTest --no-daemon --stacktrace
103
+ concurrent : true
104
+ gradle-build-scan-report : false
105
+ gradle-distribution-sha-256-sum-warning : false
106
+
76
107
# # Actual task
77
108
- name : Instrumentation Tests
78
109
uses : reactivecircus/android-emulator-runner@v2
0 commit comments