From d71b19e1e5ee935d25b33e33406bc8d4bdc8ec1c Mon Sep 17 00:00:00 2001 From: siepra Date: Wed, 17 Apr 2024 14:20:15 +0200 Subject: [PATCH] chore: start own metro --- .github/workflows/e2e-android-self.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e-android-self.yml b/.github/workflows/e2e-android-self.yml index 113d6e1d6f..2e96f4f94d 100644 --- a/.github/workflows/e2e-android-self.yml +++ b/.github/workflows/e2e-android-self.yml @@ -32,6 +32,14 @@ jobs: ndk.path=/Users/quiet/Library/Android/sdk/ndk/25.1.8937393 EOF + - name: Install pm2 + run: npm install pm2@latest -g + + - name: Start metro + run: | + cd packages/mobile + pm2 --name METRO start npm -- start + - name: Build Detox run: | export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home @@ -41,4 +49,7 @@ jobs: - name: Run basic tests run: | cd packages/mobile - detox test starter -c android.emu.debug.ci \ No newline at end of file + detox test starter -c android.emu.debug.ci + + - name: Stop metro + run: pm2 stop METRO