Feature/more utils #44
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: SwifterSwiftUI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Tests | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
xcode: ['/Applications/Xcode_11.3.app/Contents/Developer'] | |
env: | |
PROJECT: SwifterSwiftUI.xcodeproj | |
DERIVED_PATH: .build/derivedData | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Swift Build | |
run: swift build | |
- name: Bundle Install | |
run: bundle install | |
- name: Test iOS | |
run: | | |
xcodebuild clean build test -project $PROJECT -scheme $SCHEME -destination "$DESTINATION" -derivedDataPath $DERIVED_PATH | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-ios.json" xcpretty -f `xcpretty-json-formatter` | |
bash <(curl -s https://codecov.io/bash) -cF ios -J 'SwifterSwiftUI' -D $DERIVED_PATH | |
env: | |
SCHEME: SwifterSwiftUI-Package | |
DESTINATION: platform=iOS Simulator,name=iPhone 11 | |
- name: Test macOS | |
run: | | |
xcodebuild clean build test -project $PROJECT -scheme $SCHEME -destination "$DESTINATION" -derivedDataPath $DERIVED_PATH | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-macos.json" xcpretty -f `xcpretty-json-formatter` | |
bash <(curl -s https://codecov.io/bash) -cF macos -J 'SwifterSwiftUI' -D $DERIVED_PATH | |
env: | |
SCHEME: SwifterSwiftUI-Package | |
DESTINATION: platform=OS X | |
- name: Test TVOS | |
run: | | |
xcodebuild clean build test -project $PROJECT -scheme $SCHEME -destination "$DESTINATION" -derivedDataPath $DERIVED_PATH | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-tvos.json" xcpretty -f `xcpretty-json-formatter` | |
bash <(curl -s https://codecov.io/bash) -cF tvos -J 'SwifterSwiftUI' -D $DERIVED_PATH | |
env: | |
SCHEME: SwifterSwiftUI-Package | |
DESTINATION: platform=tvOS Simulator,name=Apple TV 4K (at 1080p) | |
- name: Build WatchOS | |
run: xcodebuild clean build -project $PROJECT -scheme $SCHEME -destination "$DESTINATION" -derivedDataPath $DERIVED_PATH | |
env: | |
DEVELOPER_DIR: ${{ matrix.xcode }} | |
SCHEME: SwifterSwiftUI-Package | |
DESTINATION: name=Apple Watch Series 5 - 40mm | |