File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Test OS X Platform
2+ on :
3+ pull_request :
4+ branches :
5+ - stable
6+
7+ jobs :
8+ Danger :
9+ runs-on : macos-latest
10+ env :
11+ TEST_REPORTS : /tmp/test-results
12+ LANG : en_US.UTF-8
13+
14+ steps :
15+ - uses : actions/checkout@v2
16+ - name : Create Test Result Directory
17+ run : mkdir -p $TEST_REPORTS
18+ - name : Run Unit Test - macOS
19+ run : |
20+ cd XCode
21+ set -o pipefail && xcodebuild test -scheme SwifterMac -sdk macosx -destination "arch=x86_64" | xcpretty -c -r html --output $TEST_REPORTS/macOS.html
22+ - name : Run Unit Test - iOS
23+ run : |
24+ cd XCode
25+ set -o pipefail && xcodebuild test -scheme SwifteriOS -sdk iphonesimulator -destination "name=iPhone 8" | xcpretty -c -r html --output $TEST_REPORTS/iOS.html
26+ - name : Run Unit Test - tvOS
27+ run : |
28+ cd XCode
29+ set -o pipefail && xcodebuild test -scheme SwiftertvOS -sdk appletvsimulator -destination "name=Apple TV 4K (at 1080p)" | xcpretty -c -r html --output $TEST_REPORTS/tvOS.html
30+ - name : Run Unit Test - Swift Package Manager
31+ run : |
32+ cd XCode
33+ swift build && swift test
34+ - name : Archive Test results
35+ uses : actions/upload-artifact@v1
36+ with :
37+ name : test-results
38+ path : o/tmp/test-results
You can’t perform that action at this time.
0 commit comments