-
Notifications
You must be signed in to change notification settings - Fork 23
61 lines (60 loc) · 1.65 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Crossroad
on:
push:
branches:
- master
pull_request:
branches:
- '*'
jobs:
SwiftPM:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- name: Run Tests
run: |
swift test --verbose
Carthage:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- name: Run Tests
run: |
DESTINATION="platform=iOS Simulator,name=iPhone 8" SCHEME="Crossroad-iOS"
xcodebuild test -project Crossroad.xcodeproj -scheme "${SCHEME}" -destination "${DESTINATION}"
Demo:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- name: Build Demo
run: |
DESTINATION="platform=iOS Simulator,name=iPhone 8" SCHEME="Crossroad-iOS"
xcodebuild build -project Demo/Demo.xcodeproj -scheme Demo -destination "${DESTINATION}"
tvOS:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- name: Run Tests
run: |
DESTINATION="platform=tvOS Simulator,name=Apple TV 4K" SCHEME="Crossroad-tvOS"
xcodebuild test -project Crossroad.xcodeproj -scheme "${SCHEME}" -destination "${DESTINATION}"
macOS:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- name: Run Tests
run: |
DESTINATION="platform=macOS" SCHEME="Crossroad-macOS"
xcodebuild test -project Crossroad.xcodeproj -scheme "${SCHEME}" -destination "${DESTINATION}"
Lint:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: |
gem install cocoapods
pod repo update
- name: SwiftLint
run: swiftlint --strict
- name: CocoaPods
run: pod lib lint --allow-warnings