Skip to content

Commit e2431cf

Browse files
committed
ci: build both expo apps
1 parent c2a40b3 commit e2431cf

3 files changed

Lines changed: 14 additions & 9 deletions

File tree

.github/actions/androidapp-road-test/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Package the given RN app as AAR, publish to Maven Local, and build
33

44
inputs:
55
flavor:
6-
description: 'AndroidApp flavor to build (expo or vanilla)'
6+
description: 'AndroidApp flavor to build (expo<version> or vanilla)'
77
required: true
88

99
rn-project-path:
@@ -42,14 +42,14 @@ runs:
4242

4343
# == RN app ==
4444
- name: Prebuild Expo app
45-
if: ${{ inputs.flavor == 'expo' }}
45+
if: ${{ startsWith(inputs.flavor, 'expo') }}
4646
run: |
4747
cd ${{ inputs.rn-project-path }}
4848
yarn run expo prebuild --platform android
4949
shell: bash
5050

5151
- name: Patch ExpoApp Android build.gradle for CI
52-
if: ${{ inputs.flavor == 'expo' }}
52+
if: ${{ startsWith(inputs.flavor, 'expo') }}
5353
run: |
5454
cd ${{ inputs.rn-project-path }}
5555
yarn run brownfield:prepare:android:ci
@@ -78,5 +78,5 @@ runs:
7878
# == AndroidApp ==
7979

8080
- name: Build native Android Brownfield app
81-
run: yarn run build:example:android-consumer:${{ inputs.flavor }}
81+
run: yarn run build:example:android-consumer:${{ startsWith(inputs.flavor, 'expo') && 'expo' || inputs.flavor }}
8282
shell: bash

.github/actions/appleapp-road-test/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ runs:
8383

8484
- name: Build Brownfield iOS native app (${{ inputs.variant }})
8585
run: |
86-
yarn run build:example:ios-consumer:${{ inputs.variant }}
86+
yarn run build:example:ios-consumer:${{ startsWith(inputs.variant, 'expo') && 'expo' || inputs.variant }}
8787
shell: bash
8888

8989
# ==============

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,24 @@ jobs:
8484
run: yarn run build:tester-integrated:android
8585

8686
android-androidapp-expo:
87-
name: Android road test (RNApp & AndroidApp - Expo)
87+
name: Android road test (RNApp & AndroidApp - Expo ${{ matrix.version }})
8888
runs-on: ubuntu-latest
8989
needs: build-lint
90+
strategy:
91+
matrix:
92+
include:
93+
- version: '54'
94+
- version: '55'
9095

9196
steps:
9297
- name: Checkout
9398
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
9499

95-
- name: Run RNApp -> AndroidApp road test (Expo)
100+
- name: Run RNApp -> AndroidApp road test (Expo ${{ matrix.version }})
96101
uses: ./.github/actions/androidapp-road-test
97102
with:
98-
flavor: expo
99-
rn-project-path: apps/ExpoApp
103+
flavor: expo${{ matrix.version }}
104+
rn-project-path: apps/ExpoApp${{ matrix.version }}
100105
rn-project-maven-path: com/callstack/rnbrownfield/demo/expoapp/brownfieldlib
101106

102107
android-androidapp-vanilla:

0 commit comments

Comments
 (0)