Add UIEnviroment property wrapper (#17) #62
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
# This workflow will build a Swift project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift | |
name: Unit Test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
unittest: | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: swift package resolve | |
- name: Pick xcode 15.1 | |
run: sudo xcode-select -s '/Applications/Xcode_15.1.app/Contents/Developer' | |
- name: Run Tests on MacOS | |
run: | | |
swift build -v | |
swift test -v | |
- name: Run Tests on iPhone 14 Simulator (iOS 16.0) | |
run: | | |
xcodebuild test \ | |
-scheme 'SwiftEnvironment' \ | |
-destination 'platform=iOS Simulator,name=iPhone 14,OS=16.0' |