-
-
Notifications
You must be signed in to change notification settings - Fork 69
32 lines (32 loc) · 980 Bytes
/
validate.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
name: validate
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
unit-tests:
runs-on: blaze/macos-14
strategy:
matrix:
target: [macos, iOS]
include:
- target: iOS
destination: '-destination "platform=iOS Simulator,name=iPhone 15 Pro"'
- target: macos
destination: '-destination "platform=macOS,name=Any Mac"'
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Run Tests
if: matrix.target == 'macos' # Skip iOS until we can get them to run reliably
run: xcodebuild test -scheme SwiftAudioEx ${{ matrix.destination }} -enableCodeCoverage YES
- name: Upload coverage to Codecov
if: matrix.target == 'macos'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}