Skip to content

Commit ecc5690

Browse files
fix: set env in github_env
1 parent 5851d0b commit ecc5690

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/e2e-android.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
# tool-cache: true
3535
# android: false
3636

37+
- name: Set E2E env for workflow
38+
run: echo "E2E=true" >> $GITHUB_ENV
39+
3740
- name: Set up JDK 17
3841
uses: actions/setup-java@v4
3942
with:
@@ -63,9 +66,7 @@ jobs:
6366
6467
- name: Build Android app
6568
working-directory: apps/${{ env.WORKING_DIRECTORY }}/android
66-
run: |
67-
export E2E=true
68-
./gradlew assembleDebug
69+
run: ./gradlew assembleDebug
6970

7071
- name: Enable KVM
7172
run: |
@@ -113,7 +114,6 @@ jobs:
113114
arch: x86_64
114115
script: |
115116
# Start Metro in the background
116-
export E2E=true
117117
yarn --cwd apps/${{ env.WORKING_DIRECTORY }} start &> output.log &
118118
# Wait for emulator to boot fully
119119
$ANDROID_HOME/platform-tools/adb wait-for-device
@@ -124,7 +124,6 @@ jobs:
124124
bash -c 'until $ANDROID_HOME/platform-tools/adb shell monkey -p com.paperexample 1 | grep -q "Events injected: 1"; do sleep 1; echo "Retrying app launch..."; done'
125125
126126
# Run your E2E tests
127-
export E2E=true
128127
yarn e2e
129128
130129
# - name: Start Metro server

0 commit comments

Comments
 (0)