Skip to content

Instantly share code, notes, and snippets.

@tsanto
Last active January 10, 2020 21:31
Show Gist options
  • Save tsanto/fba72dec6a492db04f57a776ea971631 to your computer and use it in GitHub Desktop.
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.
#!/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
#!/bin/bash
set -eo pipefail
cd Calculator-package; swift test --parallel; cd ..
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