Skip to content

Instantly share code, notes, and snippets.

@MathVasc
Last active October 23, 2020 14:44
Show Gist options
  • Save MathVasc/b2d0a908266c08a0f809453c1dd89054 to your computer and use it in GitHub Desktop.
Save MathVasc/b2d0a908266c08a0f809453c1dd89054 to your computer and use it in GitHub Desktop.
BuildTestCoverage
# ...
jobs:
build:
# ...
- name: Build
run: |
set -o pipefail
slather setup
xcodebuild build-for-testing \
-scheme iOSGitHubActions \
-destination 'platform=iOS Simulator,name=iPhone 11 Pro' \
-derivedDataPath build \
| xcpretty
# ...
test:
# ...
- name: Test
run: |
set -o pipefail
xcodebuild test-without-building \
-scheme iOSGitHubActions \
-destination 'platform=iOS Simulator,name=iPhone 11 Pro' \
-derivedDataPath build \
-enableCodeCoverage YES \
| xcpretty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment