@@ -3,49 +3,43 @@ name: CombineExt
33on : [push, pull_request]
44
55jobs :
6- macOS :
7- name : " macOS "
6+ xcode-tests :
7+ name : " Test "
88 runs-on : macOS-latest
9+
10+ strategy :
11+ matrix :
12+ platform : [macOS, iOS, tvOS]
13+ include :
14+ - platform : macOS
15+ sdk : macosx
16+ destination : " arch=x86_64"
917
10- steps :
11- - uses : actions/checkout@v2
12- - name : Run tests
13- run : set -o pipefail && xcodebuild -project CombineExt.xcodeproj -scheme CombineExt-Package -enableCodeCoverage YES -sdk macosx -destination "arch=x86_64" test | xcpretty -c -r html --output logs/macOS.html
14- - uses : actions/upload-artifact@v1
15- with :
16- name : build-logs-${{ github.run_id }}
17- path : logs
18+ - platform : iOS
19+ sdk : iphonesimulator
20+ destination : " name=iPhone 11"
1821
19- iOS :
20- name : " iOS "
21- runs-on : macOS-latest
22+ - platform : tvOS
23+ sdk : appletvsimulator
24+ destination : " name=Apple TV "
2225
2326 steps :
24- - uses : actions/checkout@v2
25- - name : Run tests
26- run : set -o pipefail && xcodebuild -project CombineExt.xcodeproj -scheme CombineExt-Package -enableCodeCoverage YES -sdk iphonesimulator -destination "name=iPhone 11" test | xcpretty -c -r html --output logs/iOS.html
27- 28- with :
29- token : 1519d58c-6fb9-483f-af6c-7f6f0b384345
30- name : CombineExt
31- - uses : actions/upload-artifact@v1
32- with :
33- name : build-logs-${{ github.run_id }}
34- path : logs
35- tvOS :
36- name : " tvOS"
37- runs-on : macOS-latest
27+ - uses : actions/checkout@v2
28+ - name : Select Xcode 11.4
29+ run : sudo xcode-select -s /Applications/Xcode_11.4.app
30+ - name : Run tests
31+ run : set -o pipefail && xcodebuild -project CombineExt.xcodeproj -scheme CombineExt-Package -enableCodeCoverage YES -sdk ${{ matrix.sdk }} -destination "${{ matrix.destination }}" test | xcpretty -c -r html --output logs/${{ matrix.platform }}.html
32+ 33+ with :
34+ token : 1519d58c-6fb9-483f-af6c-7f6f0b384345
35+ name : CombineExt
36+ - uses : actions/upload-artifact@v1
37+ with :
38+ name : build-logs-${{ github.run_id }}
39+ path : logs
3840
39- steps :
40- - uses : actions/checkout@v2
41- - name : Run tests
42- run : set -o pipefail && xcodebuild -project CombineExt.xcodeproj -scheme CombineExt-Package -enableCodeCoverage YES -sdk appletvsimulator -destination "name=Apple TV" test | xcpretty -c -r html --output logs/tvOS.html
43- - uses : actions/upload-artifact@v1
44- with :
45- name : build-logs-${{ github.run_id }}
46- path : logs
4741 SPM :
48- name : " SPM"
42+ name : " Test ( SPM) "
4943 runs-on : macOS-latest
5044
5145 steps :
0 commit comments