-
-
Notifications
You must be signed in to change notification settings - Fork 48
34 lines (32 loc) · 1018 Bytes
/
build_and_test.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
name: Build and Test
on:
workflow_dispatch:
push:
paths:
- 'Sources/**'
- 'Tests/**'
- '!Sources/Documentation.docc/**'
pull_request:
paths:
- 'Sources/**'
- 'Tests/**'
- '!Sources/Documentation.docc/**'
jobs:
iOS:
name: Build and test on iOS
runs-on: macOS-12
steps:
- uses: actions/checkout@v3
- name: Build
run: xcodebuild build-for-testing -scheme FlyoverKit -destination 'platform=iOS Simulator,name=iPhone 14'
- name: Test
run: xcodebuild test-without-building -scheme FlyoverKit -destination 'platform=iOS Simulator,name=iPhone 14'
tvOS:
name: Build and test on tvOS
runs-on: macOS-12
steps:
- uses: actions/checkout@v3
- name: Build
run: xcodebuild build-for-testing -scheme FlyoverKit -destination 'platform=tvOS Simulator,name=Apple TV'
- name: Test
run: xcodebuild test-without-building -scheme FlyoverKit -destination 'platform=tvOS Simulator,name=Apple TV'