-
Notifications
You must be signed in to change notification settings - Fork 17
49 lines (43 loc) · 1.13 KB
/
base_ut.yaml
File metadata and controls
49 lines (43 loc) · 1.13 KB
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
49
name: Build and Test iOS UT
on:
workflow_call:
inputs:
test-plan:
description: The test plan to run
required: true
type: string
destination:
required: true
type: string
scheme:
description: The Xcode scheme to build and test
required: true
type: string
jobs:
test:
runs-on: [macos-15-xlarge]
steps:
- name: Select Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 16
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install xcbeautify
run: brew install xcbeautify
- name: Build iOS and Test
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: |
set -o pipefail
xcodebuild test \
-project Split.xcodeproj \
-scheme Split \
-destination '${{ inputs.destination }}' \
-testPlan ${{ inputs.test-plan }} \
-sdk iphonesimulator \
ONLY_ACTIVE_ARCH=NO | xcbeautify