Skip to content

[camera] Support scanning barcode from URL #10139

[camera] Support scanning barcode from URL

[camera] Support scanning barcode from URL #10139

Workflow file for this run

name: iOS Unit Tests
on:
workflow_dispatch: {}
pull_request:
paths:
- .github/workflows/ios-unit-tests.yml
- apps/expo-go/ios/**
- packages/**/ios/**
- tools/src/dynamic-macros/**
- tools/src/commands/IosGenerateDynamicMacros.ts
- tools/src/commands/IosNativeUnitTests.ts
- tools/src/commands/NativeUnitTests.ts
- secrets/**
- fastlane/**
- Gemfile.lock
- '!packages/@expo/cli/**'
push:
branches: [main]
paths:
- .github/workflows/ios-unit-tests.yml
- apps/expo-go/ios/**
- packages/**/ios/**
- tools/src/dynamic-macros/**
- tools/src/commands/IosGenerateDynamicMacros.ts
- tools/src/commands/IosNativeUnitTests.ts
- tools/src/commands/NativeUnitTests.ts
- secrets/**
- fastlane/**
- Gemfile.lock
- '!packages/@expo/cli/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: macos-14
timeout-minutes: 75
steps:
- name: 👀 Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: 🔨 Switch to Xcode 14.3.1
run: sudo xcode-select --switch /Applications/Xcode_14.3.1.app
- name: 🔓 Decrypt secrets if possible
uses: ./.github/actions/expo-git-decrypt
with:
key: ${{ secrets.GIT_CRYPT_KEY_BASE64 }}
- name: ➕ Add `bin` to GITHUB_PATH
run: echo "$(pwd)/bin" >> $GITHUB_PATH
- name: 💎 Setup Ruby and install gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 3.2.2
- name: ♻️ Restore caches
uses: ./.github/actions/expo-caches
id: expo-caches
with:
yarn-workspace: 'true'
yarn-tools: 'true'
native-tests-pods: 'true'
- name: 🧶 Yarn install
if: steps.expo-caches.outputs.yarn-workspace-hit != 'true'
run: yarn install --frozen-lockfile
- name: 🥥 Install CocoaPods in `apps/native-tests/ios`
if: steps.expo-caches.outputs.bare-expo-pods-hit != 'true'
run: pod install
working-directory: apps/native-tests/ios
- name: 🧪 Run native iOS unit tests
timeout-minutes: 60
env:
FASTLANE_SKIP_UPDATE_CHECK: '1'
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 30
FASTLANE_XCODEBUILD_SETTINGS_RETRIES: 8
run: expotools native-unit-tests --platform ios