Skip to content

Commit a1f651f

Browse files
committed
Build Android in release mode (saving space)
1 parent 21cdcef commit a1f651f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/check.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ jobs:
7979
working-directory: apps/test-app
8080
- name: Run tests (iOS)
8181
run: npm run test:ios
82+
# TODO: Enable release mode when it works
83+
# run: npm run test:ios -- --mode Release
8284
working-directory: apps/test-app
8385
test-android:
8486
if: github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'Android 🤖')
@@ -145,6 +147,6 @@ jobs:
145147
# Uninstall the app if already in the snapshot (unlikely but could result in a signature mismatch failure)
146148
adb uninstall com.microsoft.reacttestapp || true
147149
# Build, install and run the app
148-
npm run test:android
150+
npm run test:android -- --mode Release
149151
# Wait a bit for the sub-process to terminate, before terminating the emulator
150152
sleep 5

apps/test-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"android": "react-native run-android --no-packager --active-arch-only",
88
"ios": "react-native run-ios --no-packager",
99
"pod-install": "cd ios && pod install",
10-
"test:android": "mocha-remote --exit-on-error -- concurrently --kill-others-on-fail npm:metro npm:android",
11-
"test:ios": "mocha-remote --exit-on-error -- concurrently --kill-others-on-fail npm:metro npm:ios"
10+
"test:android": "mocha-remote --exit-on-error -- concurrently --kill-others-on-fail --passthrough-arguments npm:metro 'npm:android -- {@}' --",
11+
"test:ios": "mocha-remote --exit-on-error -- concurrently --passthrough-arguments --kill-others-on-fail npm:metro 'npm:ios -- {@}' --"
1212
},
1313
"dependencies": {
1414
"@babel/core": "^7.26.10",

0 commit comments

Comments
 (0)