Skip to content

Commit

Permalink
Setup CI using GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
andersio committed May 11, 2020
1 parent a6bfe39 commit 685adbb
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 141 deletions.
140 changes: 0 additions & 140 deletions .circleci/config.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on: pull_request
name: Test
jobs:
test:
name: Test
runs-on: macos-latest
strategy:
matrix:
destination:
- -scheme "Loop-iOS" -destination "platform=iOS Simulator,name=iPhone 11 Pro"
- -scheme "Loop-tvOS" -destination "platform=tvOS Simulator,name=Apple TV 4K"
- -scheme "Loop-iOS" -destination "platform=macOS,variant=Mac Catalyst"
- -scheme "Loop-macOS" -destination "platform=macOS,arch=x86_64"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Dependency Cache
uses: actions/cache@v1
id: dependency-cache
with:
path: Carthage/Checkouts
key: carthage-${{ hashFiles('Cartfile.resolved') }}
- name: Pull Dependencies If Needed
if: steps.dependency-cache.outputs.cache-hit != 'true'
run: |
carthage checkout
- name: Test via xcodebuild
run: |
xcodebuild clean test -workspace Loop.xcworkspace ${{ matrix.destination }} CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=YES
2 changes: 1 addition & 1 deletion Loop.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 685adbb

Please sign in to comment.