Bump actions/checkout from 3 to 4 (#118) #296
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: 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@v4 | |
- 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) |