Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci/use self hosted runner #1931

Merged
merged 19 commits into from
Oct 9, 2023
39 changes: 39 additions & 0 deletions .github/workflows/e2e-ios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: E2E iOS

on:
pull_request:
paths:
- packages/mobile/**

jobs:
detox:
timeout-minutes: 10
runs-on: [self-hosted, macOS, ARM64]

steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: |
npm i
npm run lerna bootstrap --scope @quiet/eslint-config,@quiet/logger,@quiet/common,@quiet/types,@quiet/state-manager,@quiet/backend,@quiet/identity,@quiet/mobile,backend-bundle

- name: Pull binaries
run: |
git lfs install
git lfs pull

- name: Install pods
run: |
cd packages/mobile/ios
pod install

- name: Build Detox
run: |
cd packages/mobile
detox build -c ios.sim.debug.ci

- name: Run basic tests
run: |
cd packages/mobile
detox test starter -c ios.sim.debug.ci
16 changes: 16 additions & 0 deletions packages/mobile/.detoxrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ module.exports = {
type: 'iPhone 15 Pro',
},
},
simulator_ci: {
type: 'ios.simulator',
device: {
type: 'iPhone 15'
}
},
attached: {
type: 'android.attached',
device: {
Expand All @@ -80,6 +86,16 @@ module.exports = {
},
},
},
'ios.sim.debug.ci': {
device: 'simulator_ci',
app: 'ios.debug',
artifacts: {
rootDir: './e2e/artifacts/ios',
plugins: {
instruments: 'all',
},
},
},
'ios.sim.storybook': {
device: 'simulator',
app: 'ios.storybook',
Expand Down
Loading