35 lines
891 B
YAML
35 lines
891 B
YAML
name: iOS Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
ios-build:
|
|
name: Build and Test iOS app
|
|
runs-on: macos-13
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set Xcode version
|
|
run: sudo xcode-select -s /Applications/Xcode.app
|
|
|
|
- name: List available schemes
|
|
run: xcodebuild -list -project Coinly.xcodeproj
|
|
|
|
- name: List available simulators
|
|
run: xcrun simctl list devices available
|
|
|
|
- name: Build and test
|
|
run: |
|
|
xcodebuild clean build test \
|
|
-project Coinly.xcodeproj \
|
|
-scheme "Coinly" \
|
|
-sdk iphonesimulator \
|
|
-destination "platform=iOS Simulator,name=iPhone 14,OS=16.4" \
|
|
ONLY_ACTIVE_ARCH=YES \
|
|
CODE_SIGNING_REQUIRED=NO \
|
|
CODE_SIGNING_ALLOWED=NO
|