-
-
Notifications
You must be signed in to change notification settings - Fork 43
52 lines (50 loc) · 1.67 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
44
45
46
47
48
49
50
51
52
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 ValidatedPropertyKit -destination 'platform=iOS Simulator,name=iPhone 14'
- name: Test
run: xcodebuild test-without-building -scheme ValidatedPropertyKit -destination 'platform=iOS Simulator,name=iPhone 14'
macOS:
name: Build and test on macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: swift build -v
- name: Test
run: swift test -v
watchOS:
name: Build and test on watchOS
runs-on: macOS-12
steps:
- uses: actions/checkout@v3
- name: Build
run: xcodebuild build-for-testing -scheme ValidatedPropertyKit -destination 'platform=watchOS Simulator,name=Apple Watch Series 8 (45mm)'
- name: Test
run: xcodebuild test-without-building -scheme ValidatedPropertyKit -destination 'platform=watchOS Simulator,name=Apple Watch Series 8 (45mm)'
tvOS:
name: Build and test on tvOS
runs-on: macOS-12
steps:
- uses: actions/checkout@v3
- name: Build
run: xcodebuild build-for-testing -scheme ValidatedPropertyKit -destination 'platform=tvOS Simulator,name=Apple TV'
- name: Test
run: xcodebuild test-without-building -scheme ValidatedPropertyKit -destination 'platform=tvOS Simulator,name=Apple TV'