diff --git a/.github/workflows/ios-test.yml b/.github/workflows/ios-test.yml new file mode 100644 index 0000000000..447b23b646 --- /dev/null +++ b/.github/workflows/ios-test.yml @@ -0,0 +1,21 @@ +name: Testing polyPod in iOS +on: [push, pull_request] +jobs: + test: + name: Testing polyPod iOS app + runs-on: macOS-10.15 + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Lock xcode version + run: sudo xcode-select -switch /Applications/Xcode_12.4.app + - name: Build core and features + run: ./build.js + - name: Build iOS + run: | + cd ios + set -o pipefail + make test | xcpretty diff --git a/ios/Makefile b/ios/Makefile index 98525afb3c..5132b67962 100644 --- a/ios/Makefile +++ b/ios/Makefile @@ -2,6 +2,7 @@ archive_path = PolyPod.xcarchive project_path = PolyPodApp/PolyPod.xcodeproj scheme_name = PolyPod export_options_plist = exportOptions.plist +destination = 14.4 build: xcodebuild clean build \ @@ -12,7 +13,7 @@ test: xcodebuild clean test \ -project $(project_path) \ -scheme $(scheme_name) \ - -destination "platform=iOS Simulator,name=iPhone 11,OS=13.3" + -destination "platform=iOS Simulator,name=iPhone 11,OS=${destination}" archive: rm -rf $(archive_path)