feat(example): Universal App #261
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: 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: [iOS] | |
include: | |
- target: iOS | |
destination: '-destination "platform=iOS Simulator,name=Any iOS Simulator Device"' | |
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 |