-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.23 KB
/
tests.yml
File metadata and controls
55 lines (45 loc) · 1.23 KB
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
51
52
53
54
55
name: Tests
on:
push:
pull_request:
jobs:
test-ios:
name: Tests (iOS)
runs-on: macos-26
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: List available simulators
run: xcrun simctl list devices available
- name: Run tests on iOS Simulator
run: |
xcodebuild test \
-scheme AudioSnapshotTesting \
-destination 'platform=iOS Simulator,name=iPad Pro 13-inch (M5),OS=latest' \
-resultBundlePath TestResults-iOS.xcresult
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-iOS
path: TestResults-iOS.xcresult
retention-days: 30
test-macos:
name: Tests (macOS)
runs-on: macos-26
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run tests on macOS
run: |
xcodebuild test \
-scheme AudioSnapshotTesting \
-destination 'platform=macOS' \
-resultBundlePath TestResults-macOS.xcresult
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-macOS
path: TestResults-macOS.xcresult
retention-days: 30