-
-
Notifications
You must be signed in to change notification settings - Fork 69
50 lines (50 loc) · 1.47 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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]
include:
- target: macos
destination: '-destination "platform=macOS,name=Any Mac"'
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Run Tests
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 }}
build-example:
runs-on: blaze/macos-14
strategy:
matrix:
target: [macos, iOS]
include:
- target: macos
destination: '-destination "platform=macOS,name=Any Mac"'
- target: iOS
destination: '-destination "platform=iOS Simulator,name=iPhone 15 Pro"'
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Environment
uses: pkgxdev/setup@v2
with:
+: tuist.io/xcbeautify
- name: Build App
run: |-
cd Example
set -o pipefail && xcodebuild build -project SwiftAudio.xcodeproj -scheme SwiftAudio ${{ matrix.destination }} | xcbeautify --renderer github-actions