@@ -93,10 +93,10 @@ jobs:
93
93
- name : Run tests
94
94
run : ./gradlew test --build-cache --no-daemon --stacktrace --gradle-user-home "$GRADLE_HOME"
95
95
- name : Core Test Report
96
-
96
+ if : ${{ always() }}
97
+
97
98
with :
98
99
report_paths : ' ${{ github.workspace }}/constraintlayout/core/build/test-results/test/TEST-*.xml'
99
- github_token : ${{ secrets.GITHUB_TOKEN }}
100
100
101
101
compose-androidTest :
102
102
name : Compose instrumentation tests
@@ -110,11 +110,22 @@ jobs:
110
110
steps :
111
111
- name : Checkout
112
112
uses : actions/checkout@v2
113
+ - name : Gradle Wrapper Validation
114
+ uses : gradle/wrapper-validation-action@v1
113
115
- name : Set up JDK 1.11
114
116
uses : actions/setup-java@v1
115
117
with :
116
118
java-version : 1.11
117
119
120
+ # # Caching
121
+ - name : Cache build artifacts
122
+ uses : actions/cache@v2
123
+ with :
124
+ path : ${{ env.GRADLE_HOME }}/caches
125
+ # Don't set restore-keys so cache is always only valid for the current build config.
126
+ # Also don't use ${{ runner.os }} in the key so we don't re-assemble for UI tests.
127
+ key : gradle-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/buildSrc/**') }}-${{ github.sha }}
128
+
118
129
- name : AVD cache
119
130
uses : actions/cache@v2
120
131
id : avd-cache
@@ -156,10 +167,9 @@ jobs:
156
167
157
168
- name : Compose AndroidTest Report
158
169
if : ${{ always() }}
159
- uses : mikepenz/action-junit-report@v1.2.1
170
+ uses : mikepenz/action-junit-report@v2.9.0
160
171
with :
161
172
report_paths : ' ${{ github.workspace }}/constraintlayout/compose/build/outputs/androidTest-results/connected/TEST-*.xml'
162
- github_token : ${{ secrets.GITHUB_TOKEN }}
163
173
164
174
165
175
lint :
0 commit comments