example app concurrency checking #40
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
# GitHub Actions Virtual Environments | |
# https://github.com/actions/virtual-environments/ | |
name: SwiftPM Integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_15.2.app/Contents/Developer | |
IOS_DEST: "platform=iOS Simulator,name=iPhone 15,OS=latest" | |
SCHEME: ReactiveCollectionsKit | |
jobs: | |
main: | |
name: SwiftPM Build | |
runs-on: macos-13 | |
steps: | |
- name: git checkout | |
uses: actions/checkout@v4 | |
- name: xcode version | |
run: xcodebuild -version -sdk | |
- name: list simulators | |
run: | | |
xcrun simctl delete unavailable | |
xcrun simctl list | |
# Only if needed. If repo contains an Xcode project, delete it. | |
- name: delete xcodeproj | |
run: rm -rf ReactiveCollectionsKit.xcodeproj | |
- name: Build | |
run: | | |
set -o pipefail | |
xcodebuild build -scheme "$SCHEME" -destination "$IOS_DEST" | xcpretty -c | |
- name: Test | |
run: | | |
set -o pipefail | |
xcodebuild test -scheme "$SCHEME" -destination "$IOS_DEST" | xcpretty -c |