Skip to content

Commit e9e31be

Browse files
committed
Setup CI using GitHub Actions
1 parent a6bfe39 commit e9e31be

File tree

3 files changed

+30
-141
lines changed

3 files changed

+30
-141
lines changed

.circleci/config.yml

Lines changed: 0 additions & 140 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
on: pull_request
2+
name: Test
3+
jobs:
4+
test:
5+
name: Test
6+
runs-on: macos-latest
7+
strategy:
8+
matrix:
9+
destination:
10+
- -scheme "Loop-iOS" -destination "platform=iOS Simulator,name=iPhone 11 Pro"
11+
- -scheme "Loop-tvOS" -destination "platform=tvOS Simulator,name=Apple TV"
12+
- -scheme "Loop-iOS" -destination "platform=macOS,variant=Mac Catalyst"
13+
- -scheme "Loop-macOS" -destination "platform=macOS,arch=x86_64"
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
- name: Dependency Cache
18+
uses: actions/cache@v1
19+
id: dependency-cache
20+
with:
21+
path: Carthage/Checkouts
22+
key: carthage-${{ hashFiles('Cartfile.resolved') }}
23+
- name: Pull Dependencies If Needed
24+
if: steps.dependency-cache.outputs.cache-hit != 'true'
25+
run: |
26+
carthage checkout
27+
- name: Test via xcodebuild
28+
run: |
29+
xcodebuild clean test -workspace Loop.xcworkspace ${{ matrix.destination }} CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=YES

Loop.xcworkspace/contents.xcworkspacedata

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)