-
Notifications
You must be signed in to change notification settings - Fork 90
64 lines (57 loc) · 1.83 KB
/
tests.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
name: RxCombine
on:
push:
branches: main
pull_request:
branches: '**'
jobs:
macOS:
name: "macOS"
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Make Project
run: make project
- name: Run tests
run: set -o pipefail && xcodebuild -project RxCombine.xcodeproj -scheme RxCombine-Package -enableCodeCoverage YES -sdk macosx -destination "arch=x86_64" test | xcpretty -c -r html --output logs/macOS.html
- uses: actions/upload-artifact@v1
with:
name: build-logs-${{ github.run_id }}
path: logs
iOS:
name: "iOS"
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Make Project
run: make project
- name: Run tests
run: set -o pipefail && xcodebuild -project RxCombine.xcodeproj -scheme RxCombine-Package -enableCodeCoverage YES -sdk iphonesimulator -destination "name=iPhone 11" test | xcpretty -c -r html --output logs/iOS.html
- uses: codecov/[email protected]
with:
token: 3116b02c-4202-4fe6-bde2-b148f6432f17
name: RxCombine
- uses: actions/upload-artifact@v1
with:
name: build-logs-${{ github.run_id }}
path: logs
tvOS:
name: "tvOS"
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Make Project
run: make project
- name: Run tests
run: set -o pipefail && xcodebuild -project RxCombine.xcodeproj -scheme RxCombine-Package -enableCodeCoverage YES -sdk appletvsimulator -destination "name=Apple TV" test | xcpretty -c -r html --output logs/tvOS.html
- uses: actions/upload-artifact@v1
with:
name: build-logs-${{ github.run_id }}
path: logs
SPM:
name: "SPM"
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
run: set -o pipefail && swift test