-
Notifications
You must be signed in to change notification settings - Fork 13
48 lines (41 loc) · 1.3 KB
/
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
name: Test
on:
workflow_dispatch:
push:
tags:
- "*.*.*"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: macos-15
timeout-minutes: 30
env:
DEVELOPER_DIR: "/Applications/Xcode_16.2.app/Contents/Developer"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Show Xcode Version
run: xcodebuild -version
- name: Run Unit Tests
run: |
xcodebuild test \
-project Examples/Examples.xcodeproj \
-scheme Examples \
-only-testing:WebUITests \
-destination "platform=iOS Simulator,name=iPhone 16,OS=18.2" \
-derivedDataPath DerivedData \
-resultBundlePath TestResults/unit_test_result_bundle | \
xcbeautify && exit ${PIPESTATUS[0]}
- name: Run UI Tests
run: |
xcodebuild test-without-building \
-project Examples/Examples.xcodeproj \
-scheme Examples \
-only-testing:ExamplesUITests \
-destination "platform=iOS Simulator,name=iPhone 16,OS=18.2" \
-derivedDataPath DerivedData \
-resultBundlePath TestResults/ui_test_result_bundle | \
xcbeautify && exit ${PIPESTATUS[0]}