@@ -3,6 +3,20 @@ format_version: '11'
3
3
default_step_lib_source : https://github.com/bitrise-io/bitrise-steplib.git
4
4
project_type : android
5
5
workflows :
6
+ verify_pr :
7
+ before_run :
8
+ - _globalSetup
9
+ - _emulatorSetup
10
+ after_run :
11
+ - _testLibrary
12
+ - _testPlugin
13
+ - _testLegacySample
14
+ - _testFlixSample
15
+ - _testFlixLibrary
16
+ - _testAccessibility
17
+ - _testComposeExtensions
18
+ - _testFullscreenCaptureMethod
19
+ - _report
6
20
_emulatorSetup :
7
21
summary : Run your Android unit tests and get the test report.
8
22
description : The workflow will first clone your Git repository, cache your Gradle
@@ -138,17 +152,42 @@ workflows:
138
152
- gradlew_path : " ./gradlew"
139
153
- gradle_task : Plugin:assemble Plugin:assembleLocal
140
154
title : Validate build
141
- verifyPr :
142
- before_run :
143
- - _globalSetup
144
- - _emulatorSetup
145
- after_run :
146
- - _testLibrary
147
- - _testPlugin
148
- - _testLegacySample
149
- - _testFlixSample
150
- - _testFlixLibrary
151
- - _report
155
+ _testAccessibility :
156
+ steps :
157
+ - gradle-runner@2 :
158
+ inputs :
159
+ - gradlew_path : " ./gradlew"
160
+ - gradle_task : Accessibility:ktlint
161
+ title : KtLint
162
+ - gradle-runner@2 :
163
+ inputs :
164
+ - gradlew_path : " ./gradlew"
165
+ - gradle_task : Accessibility:assemble
166
+ title : Validate build
167
+ _testComposeExtensions :
168
+ steps :
169
+ - gradle-runner@2 :
170
+ inputs :
171
+ - gradlew_path : " ./gradlew"
172
+ - gradle_task : ComposeExtensions:ktlint
173
+ title : KtLint
174
+ - gradle-runner@2 :
175
+ inputs :
176
+ - gradlew_path : " ./gradlew"
177
+ - gradle_task : ComposeExtensions:assemble
178
+ title : Validate build
179
+ _testFullscreenCaptureMethod :
180
+ steps :
181
+ - gradle-runner@2 :
182
+ inputs :
183
+ - gradlew_path : " ./gradlew"
184
+ - gradle_task : FullscreenCaptureMethod:ktlint
185
+ title : KtLint
186
+ - gradle-runner@2 :
187
+ inputs :
188
+ - gradlew_path : " ./gradlew"
189
+ - gradle_task : FullscreenCaptureMethod:assemble
190
+ title : Validate build
152
191
_testFlixSample :
153
192
summary : Run your Android unit tests and get the test report.
154
193
description : The workflow will first clone your Git repository, cache your Gradle
@@ -279,62 +318,9 @@ workflows:
279
318
- deploy-to-bitrise-io@2 :
280
319
inputs :
281
320
- notify_user_groups : none
282
- publish :
283
- summary : Publish to Sonatype
284
- steps :
285
- - git-clone@8 :
286
- inputs :
287
- - fetch_tags : " yes"
288
- - merge_pr : " no"
289
- - set-java-version@1 :
290
- inputs :
291
- - set_java_version : " 17"
292
- - install-missing-android-tools@3 :
293
- inputs :
294
- - gradlew_path : $PROJECT_LOCATION/gradlew
295
- - script@1 :
296
- is_always_run : true
297
- inputs :
298
- - content : |-
299
- #!/usr/bin/env bash
300
- set -e
301
- set -x
302
- if [ "$RELEASE_TAG" == "" ]; then
303
- echo "RELEASE_TAG required"
304
- exit 1
305
- fi
306
- git fetch origin
307
- git tag | grep $RELEASE_TAG
308
- git checkout $RELEASE_TAG
309
- title : Verify preconditions
310
- - gradle-runner@2 :
311
- inputs :
312
- - gradlew_path : " ./gradlew"
313
- - gradle_task : Library:publish
314
- title : Publish Library
315
- - gradle-runner@2 :
316
- inputs :
317
- - gradlew_path : " ./gradlew"
318
- - gradle_task : Plugin:publish
319
- title : Publish Plugin
320
- - gradle-runner@2 :
321
- inputs :
322
- - gradlew_path : " ./gradlew"
323
- - gradle_task : ComposeExtensions:publish
324
- title : Publish ComposeExtensions
325
- - gradle-runner@2 :
326
- inputs :
327
- - gradlew_path : " ./gradlew"
328
- - gradle_task : Accessibility:publish
329
- title : Publish Accessibility
330
- - gradle-runner@2 :
331
- inputs :
332
- - gradlew_path : " ./gradlew"
333
- - gradle_task : FullscreenCaptureMethod:publish
334
- title : Publish FullscreenCaptureMethod
335
321
meta :
336
322
bitrise.io :
337
- stack : linux-docker-android-20 .04
323
+ stack : linux-docker-android-22 .04
338
324
machine_type_id : elite
339
325
app :
340
326
envs :
349
335
VARIANT : Debug
350
336
trigger_map :
351
337
- pull_request_source_branch : " *"
352
- workflow : verifyPr
338
+ workflow : verify_pr
0 commit comments