forked from ReactiveCocoa/ReactiveSwift
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (53 loc) · 2 KB
/
master.yml
File metadata and controls
56 lines (53 loc) · 2 KB
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
on:
push:
branches:
- master
pull_request:
types: [labeled]
branches:
- master
name: Verification
jobs:
carthage:
if: ${{ github.event_name == 'push' || ( github.event_name == 'pull_request' && github.event.label.name == 'ci:verify' ) }}
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Recover cached dependencies
uses: actions/cache@v1
id: dependency-cache
with:
path: ~/Library/Caches/org.carthage.CarthageKit
key: 4-carthage-verification-${{ runner.os }}-${{ hashFiles('Cartfile.resolved') }}
- name: Carthage verification
run: |
./script/carthage checkout
./script/carthage build --cache-builds --no-skip-current
swiftpm-macos:
if: ${{ github.event_name == 'push' || ( github.event_name == 'pull_request' && github.event.label.name == 'ci:verify' ) }}
name: SwiftPM macOS
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Pull dependencies
run: |
swift package resolve
- name: Test via SwiftPM
run: |
swift --version
swift build
cocoapods:
if: ${{ github.event_name == 'push' || ( github.event_name == 'pull_request' && github.event.label.name == 'ci:verify' ) }}
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: CocoaPods verification
run: |
# To work around the lint error: "ERROR | swift: Specification `ReactiveSwift` specifies an inconsistent `swift_version` (`4.1`) compared to the one present in your `.swift-version` file (`4.1.2`). Please remove the `.swift-version` file which is now deprecated and only use the `swift_version` attribute within your podspec."
# `.swift-version` is for swiftenv, not for CocoaPods, so we can't remove the file as suggested.
rm .swift-version
pod repo update
pod lib lint --use-libraries