Skip to content

Commit 6d2a223

Browse files
authored
Merge pull request #227 from ndtp/ext-bitrise
Verify extensions on Bitrise
2 parents 06d51ec + 9404fef commit 6d2a223

File tree

2 files changed

+52
-89
lines changed

2 files changed

+52
-89
lines changed

.github/workflows/ext_build.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

bitrise.yml

Lines changed: 52 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@ format_version: '11'
33
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
44
project_type: android
55
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
620
_emulatorSetup:
721
summary: Run your Android unit tests and get the test report.
822
description: The workflow will first clone your Git repository, cache your Gradle
@@ -138,17 +152,42 @@ workflows:
138152
- gradlew_path: "./gradlew"
139153
- gradle_task: Plugin:assemble Plugin:assembleLocal
140154
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
152191
_testFlixSample:
153192
summary: Run your Android unit tests and get the test report.
154193
description: The workflow will first clone your Git repository, cache your Gradle
@@ -279,62 +318,9 @@ workflows:
279318
- deploy-to-bitrise-io@2:
280319
inputs:
281320
- 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
335321
meta:
336322
bitrise.io:
337-
stack: linux-docker-android-20.04
323+
stack: linux-docker-android-22.04
338324
machine_type_id: elite
339325
app:
340326
envs:
@@ -349,4 +335,4 @@ app:
349335
VARIANT: Debug
350336
trigger_map:
351337
- pull_request_source_branch: "*"
352-
workflow: verifyPr
338+
workflow: verify_pr

0 commit comments

Comments
 (0)