Skip to content

Commit 9845835

Browse files
fix: run full script in one bash
1 parent 801363e commit 9845835

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/e2e-android.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ jobs:
8383
avd-name: e2e_emulator
8484
arch: x86_64
8585
script: |
86+
bash <<'EOF'
87+
set -e
88+
8689
# Install root node dependencies
8790
yarn install
8891
# Install example app node dependencies
@@ -92,7 +95,7 @@ jobs:
9295
$ANDROID_HOME/platform-tools/adb reverse tcp:8081 tcp:8081
9396
9497
# Start Metro in the background
95-
nohup E2E=true yarn --cwd apps/${{ env.WORKING_DIRECTORY }} start &> output.log &
98+
E2E=true yarn --cwd apps/${{ env.WORKING_DIRECTORY }} start &> output.log &
9699
METRO_PID=$!
97100
98101
echo "Metro PID is $METRO_PID"
@@ -112,6 +115,8 @@ jobs:
112115
# Kill Metro
113116
kill $METRO_PID || true
114117
118+
EOF
119+
115120
- name: Upload test report
116121
uses: actions/upload-artifact@v4
117122
with:

0 commit comments

Comments
 (0)