File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and test
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ jobs :
10+ build_and_test :
11+ name : ${{ matrix.command }} on ${{ matrix.platform }} (xcode ${{ matrix.xcode }}, ${{ matrix.macos }})
12+ runs-on : ${{ matrix.macos }}
13+ strategy :
14+ fail-fast : false
15+ matrix :
16+ xcode : ['14.3']
17+ macos : ['macos-13']
18+ scheme : ['CachedAsyncImage']
19+ command : ['test']
20+ platform : ['iOS']
21+ steps :
22+ - name : Switch xcode to ${{ matrix.xcode }}
23+ uses : maxim-lobanov/setup-xcode@v1.6.0
24+ with :
25+ xcode-version : ${{ matrix.xcode }}
26+ - name : Double-check macOS version (${{ matrix.macos }})
27+ run : sw_vers
28+ - name : Code Checkout
29+ uses : actions/checkout@v3
30+ - name : Check xcodebuild version
31+ run : xcodebuild -version
32+ - name : Check xcode embedded SDKs
33+ run : xcodebuild -showsdks
34+ - name : Show buildable schemes
35+ run : xcodebuild -list
36+ - name : Show eligible build destinations for ${{ matrix.scheme }}
37+ run : xcodebuild -showdestinations -scheme ${{ matrix.scheme }}
38+ - uses : mxcl/xcodebuild@v2.0.0
39+ with :
40+ platform : ${{ matrix.platform }}
41+ scheme : ${{ matrix.scheme }}
42+ action : ${{ matrix.command }}
43+ code-coverage : true
44+ verbosity : xcpretty
45+ upload-logs : always
You can’t perform that action at this time.
0 commit comments