Update ci.yml #147
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: Unit Tests | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
run_tests: | |
runs-on: macos-15 | |
environment: ${{ github.event_name == 'push' && 'default' || 'ci-macos' }} | |
strategy: | |
matrix: | |
include: | |
- xcode: "16.1" | |
ios: "17.5" | |
- xcode: "16.1" | |
ios: "18.1" | |
name: iOS (${{ matrix.ios }}) | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Select Xcode | |
run: sudo xcode-select -switch /Applications/Xcode_${{ matrix.xcode }}.app && /usr/bin/xcodebuild -version | |
- name: Run unit tests | |
run: xcodebuild test -scheme 'Chronos Dev Release' -project Chronos.xcodeproj -destination 'platform=iOS Simulator,name=iPhone 15 Pro Max,OS=${{ matrix.ios }}' | xcpretty && exit ${PIPESTATUS[0]} |