feat: upgrade to Expo SDK 54 canary 6 (#109) #354
This file contains hidden or 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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
# To ensure that the commitlint merge_group event triggers correctly, you need to have at least one workflow that responds to the pull_request event with a job named the same as the one in your merge_group workflow (commitlint in this example). This is necessary because the merge queue relies on the existence of status checks from the pull request context. | |
commitlint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Lint files | |
run: yarn lint | |
- name: Typecheck files | |
run: yarn typecheck | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Run unit tests | |
run: yarn test --maxWorkers=2 --coverage | |
build-library: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Build package | |
run: yarn build | |
- name: Check for unstaged files | |
uses: ./.github/actions/check-unstaged-files | |
build-web: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Build package | |
run: yarn build | |
- name: Build example for Web | |
run: | | |
yarn example expo export --platform web | |
- name: Check for unstaged files | |
uses: ./.github/actions/check-unstaged-files | |
build-ios-dev: | |
runs-on: macos-15 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Build iOS app | |
id: build | |
uses: ./.github/actions/ios-dev-app | |
# maestro-ios: | |
# runs-on: macos-latest | |
# needs: build-ios-dev | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v4 | |
# - name: Setup Maestro | |
# uses: ./.github/actions/maestro | |
# - name: Download development build | |
# uses: actions/download-artifact@v4 | |
# with: | |
# name: ios-dev-build | |
# path: ./ | |
# - name: Extract and install app | |
# run: | | |
# # Extract the app bundle | |
# tar -xzf ios-dev-build.tar.gz | |
# APP_PATH=$(find . -name "*.app" -type d | head -n 1) | |
# if [ -z "$APP_PATH" ]; then | |
# echo "No .app bundle found after extraction" | |
# exit 1 | |
# fi | |
# echo "Installing app from: $APP_PATH" | |
# xcrun simctl install $DEVICE_ID "$APP_PATH" | |
# # Get the app bundle ID for launching | |
# APP_BUNDLE_ID=$(plutil -extract CFBundleIdentifier raw "$APP_PATH/Info.plist") | |
# echo "APP_BUNDLE_ID=$APP_BUNDLE_ID" >> $GITHUB_ENV | |
# - name: Run Maestro tests | |
# run: | | |
# # Ensure the simulator is booted before running tests | |
# if [ -z "$DEVICE_ID" ]; then | |
# echo "No simulator found. Exiting." | |
# exit 1 | |
# fi | |
# # Launch the app first | |
# xcrun simctl launch $DEVICE_ID $APP_BUNDLE_ID | |
# maestro test --device-id "$DEVICE_ID" --test-dir src/__tests__/e2e --report-dir src/__tests__/e2e/reports |