Skip to content

Simplify CI a la Flow #52

Simplify CI a la Flow

Simplify CI a la Flow #52

Workflow file for this run

name: Tests
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
swift_test:
name: Test
runs-on: macos-latest
steps:
- name: Check out Keyboard
uses: actions/checkout@v4
- name: Test Keyboard
run: swift test -c release
# Build the demo projects.
build_demo:
name: Build Demo
runs-on: macos-latest
needs: [swift_test]
steps:
- name: Check out Keyboard
uses: actions/checkout@v4
- name: Build Demo
run: xcodebuild build -project Demo/KeyboardDemo.xcodeproj -scheme KeyboardDemo -destination "name=My Mac"
# Send notification to Discord on failure.
send_notification:
name: Send Notification
uses: AudioKit/ci/.github/workflows/send_notification.yml@main
needs: [swift_test, build_demo]
if: ${{ failure() && github.ref == 'refs/heads/main' }}
secrets: inherit