Added github action for build and test (#48) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: iOS Build and Test | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
buildAndTest: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Build and test | |
run: | | |
xcodebuild \ | |
-project SwiftIslandApp.xcodeproj \ | |
-scheme SwiftIsland \ | |
-sdk iphonesimulator \ | |
-destination 'platform=iOS Simulator,name=iPhone 14,OS=16.4' \ | |
test |