Skip to content

Commit

Permalink
chore: restore self hosted ios e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
siepra committed Apr 25, 2024
1 parent 13f78ae commit 147e777
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/e2e-ios-self.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Detox E2E iOS (self-hosted)

on:
push:
paths:
- packages/mobile/**
- packages/backend/**
- packages/state-manager/**
- .github/workflows/e2e-ios-self.yml

jobs:
detox-ios-self-hosted:
timeout-minutes: 25
runs-on: [self-hosted, macOS, ARM64, iOS]

steps:
- uses: actions/checkout@v4
with:
lfs: true

- 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: Install pods
run: |
cd packages/mobile/ios
pod install
- 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: |
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
- name: Stop metro
if: always()
run: pm2 stop METRO

0 comments on commit 147e777

Please sign in to comment.