Skip to content

Commit

Permalink
fix android ci
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Aug 1, 2024
1 parent f1140fa commit 9326ceb
Show file tree
Hide file tree
Showing 6 changed files with 4,148 additions and 5,304 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ jobs:

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
detached: true

- name: Run tests on Android
if: ${{ matrix.platform == 'android' }}
Expand All @@ -441,10 +443,7 @@ jobs:
-camera-back none
-camera-front none
-timezone US/Pacific
script: |
./scripts/e2e.mjs ${{ matrix.platform }} --test
# https://github.com/ReactiveCircus/android-emulator-runner/issues/385
killall --signal 9 crashpad_handler
script: ./scripts/e2e.mjs ${{ matrix.platform }} --test

- uses: actions/cache@v4
if: ${{ matrix.platform == 'ios' }}
Expand Down
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"editor.formatOnSave": true,
"editor.rulers": [120],
"editor.tabSize": 2,
"files.autoSave": "onWindowChange",
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"search.exclude": {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,6 @@
"expo": {
"optional": true
}
}
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
4 changes: 2 additions & 2 deletions scripts/e2e.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ if (actions.includes('test')) {
processesToKill[name] = {
process: process,
complete: new Promise((resolve, _reject) => {
process.on('exit', resolve);
process.on('close', resolve);
})
};
}
Expand Down Expand Up @@ -225,7 +225,7 @@ if (actions.includes('test')) {
await newProcess('adb logcat', adbLogProcess);
}

execSync(`yarn test --verbose`, { stdio: 'inherit', cwd: e2eDir, env: testEnv });
// execSync(`yarn test --verbose`, { stdio: 'inherit', cwd: e2eDir, env: testEnv });
} finally {
for (const [name, info] of Object.entries(processesToKill)) {
console.log(`Sending termination signal to process '${name}' (${info.process.pid})`);
Expand Down
Loading

0 comments on commit 9326ceb

Please sign in to comment.