Skip to content

Commit

Permalink
Ci/use self hosted runner (#1931)
Browse files Browse the repository at this point in the history
* Add e2e iOS workflow

* Dummy mobile change

* Navigate to project's directory

* Intentionally break the test

* Use checkout and setup project

* Use project directory

* Don't reuse setup environment step

* Correct step

* Print location

* Skip path

* Install dependencies

* Add more steps

* Point to mobile dir

* Dummy change

* Git lfs

* Fix test

* Add Detox CI config

* Decrease timeout

* Use more labels for runner
  • Loading branch information
siepra committed Oct 9, 2023
1 parent ad96d8c commit 94855a8
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
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 14',
},
},
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

0 comments on commit 94855a8

Please sign in to comment.