-
Notifications
You must be signed in to change notification settings - Fork 83
33 lines (28 loc) · 941 Bytes
/
pr_ci.yaml
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
name: pr_ci
on:
pull_request:
branches:
- main
types: [opened, reopened, synchronize]
jobs:
test:
runs-on: macos-latest
name: Run Unit Tests
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Xcode
run: sudo xcode-select -switch /Applications/Xcode.app
- name: Cache DerivedData
uses: actions/cache@v3
with:
path: ~/Library/Developer/Xcode/DerivedData
key: ${{ runner.os }}-xcode-${{ hashFiles('**/project.pbxproj') }}
restore-keys: |
${{ runner.os }}-xcode-
- name: Build
run: |
xcodebuild -scheme Scribe -destination 'platform=iOS Simulator,name=iPhone 16,OS=latest' -allowProvisioningUpdates clean build
- name: Test
run: |
xcodebuild -scheme Scribe -destination 'platform=iOS Simulator,name=iPhone 16,OS=latest' -allowProvisioningUpdates test