huseyinbagana runs all tests for branch 12/merge #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |