diff --git a/.github/workflows/ios-tests.yml b/.github/workflows/ios-tests.yml new file mode 100644 index 00000000..6b1413de --- /dev/null +++ b/.github/workflows/ios-tests.yml @@ -0,0 +1,20 @@ +name: ios-tests +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + unit-tests: + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + - run: cd apps/ios && bundle install && gem uninstall cocoapods --version '>= 1.12.0' + # cocoapods-patch does not support cocoapods 1.12.0 yet + - run: cd apps/ios && pod install + - name: Build + run: xcodebuild build-for-testing -workspace apps/ios/GuideDogs.xcworkspace -scheme Soundscape -destination 'platform=iOS Simulator,name=iPhone 13' + - name: Test + run: xcodebuild test-without-building -workspace apps/ios/GuideDogs.xcworkspace -scheme Soundscape -destination 'platform=iOS Simulator,name=iPhone 13'