-
-
Notifications
You must be signed in to change notification settings - Fork 9
43 lines (41 loc) · 1.48 KB
/
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
35
36
37
38
39
40
41
42
43
name: Build and Test
on:
workflow_dispatch:
push:
paths:
- "Sources/**"
- "Tests/**"
- "!Sources/VanMoofKit/Documentation.docc/**"
pull_request:
paths:
- "Sources/**"
- "Tests/**"
- "!Sources/VanMoofKit/Documentation.docc/**"
jobs:
iOS:
name: Build and test on iOS
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- name: Build
run: xcodebuild build-for-testing -scheme VanMoofKit-Package -destination 'platform=iOS Simulator,name=iPhone 14'
- name: Test
run: xcodebuild test-without-building -scheme VanMoofKit-Package -destination 'platform=iOS Simulator,name=iPhone 14'
watchOS:
name: Build and test on watchOS
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- name: Build
run: xcodebuild build-for-testing -scheme VanMoofKit-Package -destination 'platform=watchOS Simulator,name=Apple Watch Series 8 (45mm)'
- name: Test
run: xcodebuild test-without-building -scheme VanMoofKit-Package -destination 'platform=watchOS Simulator,name=Apple Watch Series 8 (45mm)'
tvOS:
name: Build and test on tvOS
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- name: Build
run: xcodebuild build-for-testing -scheme VanMoofKit-Package -destination 'platform=tvOS Simulator,name=Apple TV'
- name: Test
run: xcodebuild test-without-building -scheme VanMoofKit-Package -destination 'platform=tvOS Simulator,name=Apple TV'