Skip to content

fix(observability): remove test for MXMetricPayload which is unavaila… #10

fix(observability): remove test for MXMetricPayload which is unavaila…

fix(observability): remove test for MXMetricPayload which is unavaila… #10

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
name: Build & Test
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Select Xcode 16
run: sudo xcode-select -s /Applications/Xcode_16.2.app
- name: Cache SPM packages
uses: actions/cache@v5
with:
path: |
~/Library/Developer/Xcode/DerivedData/**/SourcePackages
~/.swiftpm
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Install Brewfile dependencies
run: brew bundle
- name: Set pkg-config path for FFmpeg
run: echo "PKG_CONFIG_PATH=/opt/homebrew/opt/ffmpeg/lib/pkgconfig" >> $GITHUB_ENV
- name: Doctor (print tool versions)
run: make doctor
- name: Generate Xcode project
run: make generate
- name: Lint (SwiftLint + SwiftFormat)
run: make lint && make format-check
- name: Build & Test with coverage
run: make test-coverage 2>&1 | xcbeautify
- name: Test AudioEngine package
run: make test-audio-engine
- name: Upload test results
uses: actions/upload-artifact@v7
if: always()
with:
name: TestResults-${{ github.run_id }}
path: build/TestResults.xcresult
retention-days: 7