-
Notifications
You must be signed in to change notification settings - Fork 40
62 lines (50 loc) · 1.59 KB
/
action.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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
carthage-tests:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: Carthage
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }}
restore-keys: |
${{ runner.os }}-carthage-
- name: Carthage Bootstrap
run: carthage bootstrap --cache-builds --no-use-binaries --platform ios
- name: Run all tests
run: xcodebuild clean build test -scheme 'RxSwiftUtilities iOS' -destination "platform=iOS Simulator,name=iPhone 11" -enableCodeCoverage YES
- name: CodeCov
run: bash <(curl -s https://codecov.io/bash) -J 'RxSwiftUtilities'
spm-tests:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: SPM
key: ${{ runner.os }}-spm-${{ hashFiles('**/Cartfile.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Swift Package manager
run: |
swift build -Xswiftc "-sdk" \
-Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" \
-Xswiftc "-target" \
-Xswiftc "x86_64-apple-ios13.0-simulator"
- name: Run all tests
run: |
swift test -Xswiftc "-sdk" \
-Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" \
-Xswiftc "-target" \
-Xswiftc "x86_64-apple-ios13.0-simulator" \
--enable-code-coverage
- name: CodeCov
run: bash <(curl -s https://codecov.io/bash) -J 'RxSwiftUtilities'