-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (51 loc) · 1.3 KB
/
mobile-ios-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Mobile iOS Tests
on:
push:
branches: [main, master]
paths:
- mobile/**
pull_request:
branches: [master]
paths:
- mobile/**
workflow_dispatch:
jobs:
build:
name: iOS Test
runs-on: macos-14
defaults:
run:
working-directory: ./mobile
steps:
- uses: actions/checkout@v4
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Set up CocoaPods
uses: maxim-lobanov/setup-cocoapods@v1
with:
version: latest
- name: Set up applesimutils
run: |
brew tap wix/brew
brew install applesimutils
- name: Install dependencies
run: npm ci
- name: Install CocoaPods
run: cd ios && pod install
- name: Run Detox build
run: npx detox build --configuration ios.sim.debug
- name: Run Detox Test
run: |
npx expo start &
sleep 5 && npx detox test --configuration ios.sim.debug --headless
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: test-results
path: ./mobile/artifacts/