Skip to content

Instantly share code, notes, and snippets.

@0xLeif
Created August 5, 2020 22:38
Show Gist options
  • Save 0xLeif/e45b44ef493fa38f531602878eb8081f to your computer and use it in GitHub Desktop.
Save 0xLeif/e45b44ef493fa38f531602878eb8081f to your computer and use it in GitHub Desktop.
Swift iOS GitHub Action
iOS:
runs-on: macOS-latest
steps:
- name: Select latest available Xcode
uses: maxim-lobanov/[email protected]
with:
xcode-version: latest
- name: Checkout code
uses: actions/checkout@v2
# Since we want to be running our tests from Xcode, we need to
# generate an .xcodeproj file. Luckly, Swift Package Manager has
# build in functionality to do so.
- name: Generate xcodeproj
run: swift package generate-xcodeproj
# Finally, we invoke xcodebuild to run the tests on an iPhone 11
# simulator.
- name: Run tests
run: xcodebuild test -destination 'name=iPhone 11' -scheme 'fluent-kit-Package'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment