Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Include iOS tests #341

Merged
merged 21 commits into from
Oct 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/ios-test.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion ios/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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)
Expand Down