Skip to content

Refactor

Refactor #12

Workflow file for this run

name: Tests
on:
push:
branches:
- main
paths-ignore:
- 'README.md'
pull_request:
branches:
- main
paths-ignore:
- 'README.md'
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]}