feat: Local tiles #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: iOS Build and Render | |
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: Test build setup | |
shell: bash | |
run: | | |
yarn expo prebuild --platform ios --clean | |
cd ios | |
if ! pod install; then | |
echo "Pod install failed" | |
exit 1 | |
fi | |
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 server and run Maestro tests | |
run: | | |
# Start Expo in the background | |
yarn expo start & | |
# Wait for Metro to be ready | |
sleep 15 | |
# Boot simulator if needed and run tests | |
xcrun simctl list | grep -q 'Booted' || xcrun simctl boot 'iPhone 15' | |
yarn test:maestro | |
env: | |
CI: true |