Last active
January 10, 2020 21:31
-
-
Save tsanto/fba72dec6a492db04f57a776ea971631 to your computer and use it in GitHub Desktop.
Files used in this repo @/tsanto/Calculator-github-actions to test an iOS app and Swift Package.
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
#!/bin/bash | |
set -eo pipefail | |
xcodebuild -workspace Calculator.xcworkspace \ | |
-scheme Calculator\ iOS \ | |
-destination platform=iOS\ Simulator,OS=13.3,name=iPhone\ 11 \ | |
clean test | xcpretty |
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
#!/bin/bash | |
set -eo pipefail | |
cd Calculator-package; swift test --parallel; cd .. |
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: Testing | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
name: Testing Swift Package and iOS app | |
runs-on: macOS-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
- name: Force XCode 11.3 | |
run: sudo xcode-select -switch /Applications/Xcode_11.3.app | |
- name: Testing Swift package | |
run: exec ./.github/scripts/test_swift_package.sh | |
- name: Testing iOS app | |
run: exec ./.github/scripts/test_app.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment