-
Notifications
You must be signed in to change notification settings - Fork 12
38 lines (31 loc) · 975 Bytes
/
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
name: Test
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
unit_test:
name: Unit Test
runs-on: macos-14
env:
DEVELOPER_DIR: "/Applications/Xcode_15.1.app/Contents/Developer"
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Show Xcode Version
run: xcodebuild -version
- name: Run Tests
run: |
xcodebuild test \
-project Examples/Examples.xcodeproj \
-scheme Examples \
-destination "platform=iOS Simulator,name=iPhone 15,OS=17.2" \
-resultBundlePath TestResults/result_bundle
- name: Archive test results
if: success() || failure()
uses: kishikawakatsumi/xcresulttool@2b37f116695328d5e503ac8dadca0f1545a51da4 #v1.7.1
with:
path: TestResults/result_bundle.xcresult
show-passed-tests: false