-
-
Notifications
You must be signed in to change notification settings - Fork 18
34 lines (31 loc) · 1.04 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
name: ci
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CI_XCODE: '/Applications/Xcode_14.2.app/Contents/Developer'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: macos-latest
strategy:
matrix:
destination: ['-destination platform\=iOS\ Simulator,name\=iPhone\ 14\ Pro\ Max test', 'CODE_SIGNING_ALLOWED="NO"']
scheme: ['OCKSample', 'OCKWatchSample']
exclude:
- destination: '-destination platform\=iOS\ Simulator,name\=iPhone\ 14\ Pro\ Max test'
scheme: 'OCKWatchSample'
- destination: 'CODE_SIGNING_ALLOWED="NO"'
scheme: 'OCKSample'
steps:
- uses: actions/checkout@v3
- name: Build-Test
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project OCKSample.xcodeproj -scheme ${{ matrix.scheme }} ${{ matrix.destination }} | xcpretty
env:
DEVELOPER_DIR: ${{ env.CI_XCODE }}
- name: Send codecov
run: bash <(curl https://codecov.io/bash)