-
-
Notifications
You must be signed in to change notification settings - Fork 17
37 lines (33 loc) · 899 Bytes
/
tests.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
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 Flow
uses: actions/checkout@v4
- name: Test Flow
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 Flow
uses: actions/checkout@v4
- name: Build Demo
run: xcodebuild build -project Demo/FlowDemo.xcodeproj -scheme FlowDemo -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