Skip to content

feat: Local tiles

feat: Local tiles #15

Workflow file for this run

name: iOS Build and Test
on:
push:
pull_request:
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
- name: Install Yarn
run: npm install -g yarn
- name: Install dependencies
run: yarn install
- name: Build iOS app
run: |
yarn expo prebuild --platform ios --clean
cd ios
pod install
cd ..
yarn generate-test-data
cd ios
SDK_VERSION=$(xcodebuild -showsdks | grep 'Simulator - iOS' | grep -o 'iphonesimulator[0-9.]*' | head -1)
OS_VERSION=$(echo $SDK_VERSION | grep -o '[0-9.]*')
xcodebuild -workspace pinpadclientmaplibre.xcworkspace \
-scheme pinpadclientmaplibre \
-configuration Debug \
-sdk $SDK_VERSION \
-destination "platform=iOS Simulator,OS=$OS_VERSION,name=iPhone 15" \
build
- name: Install Maestro
run: |
curl -Ls "https://get.maestro.mobile.dev" | bash
echo "$HOME/.maestro/bin" >> $GITHUB_PATH
- name: Start Expo and run tests
timeout-minutes: 10
run: |
# Boot simulator
xcrun simctl boot 'iPhone 15'
# Install the app
xcrun simctl install 'iPhone 15' "ios/build/Build/Products/Debug-iphonesimulator/pinpadclientmaplibre.app"
# Start Expo in the background
yarn expo start &
# Wait for Metro to be ready
sleep 15
# Run Maestro tests
yarn test:maestro
env:
CI: true