Update README.md #4
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: Build & Test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: macos-14 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install xcpretty | |
run: | | |
gem install xcpretty | |
- name: Set up Xcode version | |
run: sudo xcode-select -s /Applications/Xcode_15.3.app/Contents/Developer | |
- name: Set up code signing | |
run: ruby -r xcodeproj -e 'project = Xcodeproj::Project.open("Navigation.xcodeproj"); target = project.targets.first; target.build_configuration_list.build_configurations.each { |config| config.build_settings["CODE_SIGN_STYLE"] = "Automatic" }; project.save' | |
- name: Build project | |
run: xcodebuild -project Navigation.xcodeproj -scheme Navigation -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 15 Pro' clean build | xcpretty | |
- name: Run tests | |
run: xcodebuild test -scheme Navigation -project Navigation.xcodeproj -destination 'platform=iOS Simulator,name=iPhone 15 Pro' | xcpretty && exit ${PIPESTATUS[0]} |