-
Notifications
You must be signed in to change notification settings - Fork 38
101 lines (100 loc) · 2.89 KB
/
unit-test.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Unit Tests
on:
pull_request:
push:
branches:
- master
concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true
jobs:
macOS:
name: Test macOS, All Xcodes and Swifts
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}/Contents/Developer"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- xcode: "Xcode_13.4.1.app"
runsOn: macOS-12
name: "macOS 12, Xcode 13.4.1, Swift 5.6.1 Test"
- xcode: "Xcode_13.3.1.app"
runsOn: macOS-12
name: "macOS 12, Xcode 13.3.1, Swift 5.6 Test"
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name }}
run: xcodebuild -scheme TMDBSwift -destination "platform=macOS" clean test
iOS:
name: "Test iOS"
runs-on: macOS-12
env:
DEVELOPER_DIR: "/Applications/Xcode_13.4.1.app/Contents/Developer"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- destination: "OS=15.5,name=iPhone 13 Pro"
name: "iOS 15.5 Test"
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name }}
run: xcodebuild -scheme TMDBSwift -destination "${{ matrix.destination }}" clean test
tvOS:
name: Test tvOS
runs-on: macOS-12
env:
DEVELOPER_DIR: "/Applications/Xcode_13.4.1.app/Contents/Developer"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- destination: "OS=15.4,name=Apple TV"
name: "tvOS 15.4 Test"
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name }}
run: xcodebuild -scheme TMDBSwift -destination "${{ matrix.destination }}" clean test
watchOS:
name: Test watchOS
runs-on: macOS-12
env:
DEVELOPER_DIR: "/Applications/Xcode_13.4.1.app/Contents/Developer"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- destination: "OS=8.5,name=Apple Watch Series 7 - 45mm"
name: "watchOS 8.5 Test"
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name}}
run: xcodebuild -scheme TMDBSwift -destination "${{ matrix.destination }}" clean test
SPM:
name: Test with SPM
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}/Contents/Developer"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- xcode: "Xcode_13.4.1.app"
runsOn: macOS-12
name: "macOS 12, SPM 5.6.1 Test"
action: swift test -c debug
- xcode: "Xcode_13.3.1.app"
runsOn: macOS-12
name: "macOS 12, SPM 5.6 Test"
action: swift test -c debug
steps:
- uses: actions/checkout@v3
- name: Test SPM
run: ${{ matrix.action }}