-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added unit test * updated runner * added environment
- Loading branch information
1 parent
22bf5a1
commit 8fad422
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Unit Tests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
run_tests: | ||
runs-on: macos-14 | ||
environment: ${{ github.event_name == 'push' && 'default' || 'ci-macos' }} | ||
strategy: | ||
matrix: | ||
include: | ||
- xcode: "15.4" | ||
ios: "17.5" | ||
name: iOS (${{ matrix.ios }}) | ||
steps: | ||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- 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]} |