-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1.14 KB
/
build-and-run-tests.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
name: build-and-run-tests
run-name: ${{ github.actor }} runs all tests for branch ${{ github.ref_name }}
on:
# Trigger when a new pull-request has been opened or a new commit has been pushed for an existing pull-request.
pull_request:
types: [opened, synchronize]
jobs:
build:
runs-on: macos-13
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
steps:
- name: check MacOS version
run: sw_vers
- name: Install Xcode 15.0
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0'
- name: check Xcode version
run: /usr/bin/xcodebuild -version
- name: Checkout code
uses: actions/checkout@v3
with:
# Refer to the correct branch of the pull-request which prevents some problems with dependencies.
ref: ${{ github.event.pull_request.head.sha }}
- name: Build Example App and Run Unit Tests
run: |
xcodebuild clean build test \
-workspace INCommons.xcworkspace \
-scheme INCommonsExample \
-destination 'platform=iOS Simulator,name=iPhone 14 Pro'