forked from wokalski/Diff.swift
-
Notifications
You must be signed in to change notification settings - Fork 74
65 lines (54 loc) · 1.54 KB
/
continuous-integration.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
62
63
64
65
name: Continuous Integration
env:
DEVELOPER_DIR: "/Applications/Xcode_13.2.1.app/Contents/Developer"
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [main]
jobs:
xcode-build:
name: Xcode Build
runs-on: macos-11
strategy:
matrix:
destination: [
"platform=macOS",
"platform=iOS Simulator,name=iPhone 11",
"platform=tvOS Simulator,name=Apple TV",
"platform=watchOS Simulator,name=Apple Watch Series 5 - 44mm"
]
steps:
- uses: actions/checkout@v1
- name: xcrun xcodebuild build
run: xcrun xcodebuild build -destination "${{ matrix.destination }}" -project "Differ.xcodeproj" -scheme "Differ"
xcode-test:
name: Xcode Test
runs-on: macos-11
strategy:
matrix:
destination: [
"platform=macOS",
"platform=iOS Simulator,name=iPhone 11",
"platform=tvOS Simulator,name=Apple TV"
]
steps:
- uses: actions/checkout@v1
- name: xcrun xcodebuild test
run: |
xcrun xcodebuild test -destination "${{ matrix.destination }}" -project "Differ.xcodeproj" -scheme "Differ"
bash <(curl -s https://codecov.io/bash)
swift-package-manager-test:
name: Swift Package Manager
runs-on: macos-11
steps:
- uses: actions/checkout@v1
- name: swift test
run: swift test
cocoapods-verify:
name: CocoaPods
runs-on: macos-11
steps:
- uses: actions/checkout@v1
- name: Lint CocoaPods specification
run: pod lib lint