-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (51 loc) · 1.3 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
name: On Pull Request
on:
pull_request:
branches: [ main ]
jobs:
build:
name: Build Project
runs-on: macos-13
steps:
- name: Chechout Repository
uses: actions/checkout@v2
- name: Select Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0'
- name: Build
run: |
set -o pipefail
xcodebuild build \
-scheme unicocheck-ios \
-destination 'platform=iOS Simulator,name=iPhone 14' \
-derivedDataPath build \
| xcpretty
- name: Archive derived data artifacts
uses: actions/[email protected]
with:
name: build
path: build
test:
name: Test Project
needs: build
runs-on: macos-13
steps:
- name: Chechout Repository
uses: actions/checkout@v2
- name: Download derived data artifact
uses: actions/[email protected]
with:
name: build
- name: Select Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0'
- name: Test
run: |
set -o pipefail
xcodebuild build \
-scheme unicocheck-ios \
-destination 'platform=iOS Simulator,name=iPhone 14' \
-derivedDataPath \
test