-
-
Notifications
You must be signed in to change notification settings - Fork 6
68 lines (56 loc) · 1.51 KB
/
ci.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# GitHub Actions Virtual Environments
# https://github.com/actions/virtual-environments/
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
PROJECT: ReactiveCollectionsKit.xcodeproj
SCHEME: ReactiveCollectionsKit
EXAMPLE_PROJECT: Example/ExampleApp.xcodeproj
EXAMPLE_SCHEME: ExampleApp
DEVELOPER_DIR: /Applications/Xcode_15.2.app/Contents/Developer
IOS_DEST: "platform=iOS Simulator,name=iPhone 15,OS=latest"
jobs:
env-details:
name: Environment details
runs-on: macos-13
steps:
- name: xcode version
run: xcodebuild -version -sdk
- name: list simulators
run: |
xcrun simctl delete unavailable
xcrun simctl list
test-iOS:
name: iOS unit test
runs-on: macOS-13
steps:
- name: git checkout
uses: actions/checkout@v4
- name: unit tests
run: |
set -o pipefail
xcodebuild clean test \
-project "$PROJECT" \
-scheme "$SCHEME" \
-destination "$IOS_DEST" \
CODE_SIGN_IDENTITY="-" | xcpretty -c
ui-test-iOS:
name: iOS UI tests
runs-on: macos-13
steps:
- name: git checkout
uses: actions/checkout@v4
- name: ui tests
run: |
set -o pipefail
xcodebuild clean test \
-project "$EXAMPLE_PROJECT" \
-scheme "$EXAMPLE_SCHEME" \
-destination "$IOS_DEST" \
CODE_SIGN_IDENTITY="-" | xcpretty -c