-
Notifications
You must be signed in to change notification settings - Fork 16
108 lines (108 loc) · 5 KB
/
swift.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: Test
on:
workflow_dispatch:
push:
branches: [ develop, legacy/v6 ]
pull_request:
branches: [ develop, legacy/v6 ]
defaults:
run:
working-directory: Example
jobs:
lint:
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- name: linting
run: swiftlint lint
BuildSwiftPackage:
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- name: Select Xcode version 14.0.1
run: sudo xcode-select -s '/Applications/Xcode_14.0.1.app/Contents/Developer'
- name: Building Swift Package
run: xcodebuild clean build -scheme SPMBuild -workspace ConsentViewController.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.0'
- uses: actions/upload-artifact@v2
if: failure()
name: Upload Swift Package build results
with:
path: /Users/runner/Library/Developer/Xcode/DerivedData/**/*.xcresult
ObjC-ExampleApp-tests:
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- name: Select Xcode version 14.0.1
run: sudo xcode-select -s '/Applications/Xcode_14.0.1.app/Contents/Developer'
- name: ObjC-ExampleApp testing -> iPhone 14 Pro (iOS 16.0)
run: xcodebuild test -scheme ObjC-ExampleApp -workspace ConsentViewController.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.0'
- uses: actions/upload-artifact@v2
if: failure()
name: Upload ObjCExampleApp tests results
with:
path: /Users/runner/Library/Developer/Xcode/DerivedData/**/*.xcresult
# NativeMessageExample-tests:
# runs-on: macos-12
# steps:
# - uses: actions/checkout@v2
# - name: Select Xcode version 14.0.1
# run: sudo xcode-select -s '/Applications/Xcode_14.0.1.app/Contents/Developer'
# - name: NativeMessageExample testing -> iPhone 14 Pro (iOS 16.0)
# run: xcodebuild test -scheme NativeMessageExample -workspace ConsentViewController.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.0'
# - uses: actions/upload-artifact@v2
# if: failure()
# name: Upload NativeMessageExample tests results
# with:
# path: /Users/runner/Library/Developer/Xcode/DerivedData/**/*.xcresult
ConsentViewController:
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- name: Select Xcode version 14.0.1
run: sudo xcode-select -s '/Applications/Xcode_14.0.1.app/Contents/Developer'
- name: ConsentViewController testing -> iPhone 14 Pro (iOS 16.0)
run: xcodebuild test -scheme ConsentViewController_Example -workspace ConsentViewController.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.0'
- uses: actions/upload-artifact@v2
if: failure()
name: Upload ConsentViewController tests results
with:
path: /Users/runner/Library/Developer/Xcode/DerivedData/**/*.xcresult
AuthExample-tests:
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- name: Select Xcode version 14.0.1
run: sudo xcode-select -s '/Applications/Xcode_14.0.1.app/Contents/Developer'
- name: ConsentViewController testing -> iPhone 14 Pro (iOS 16.0)
run: xcodebuild test -scheme AuthExample -workspace ConsentViewController.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.0'
- uses: actions/upload-artifact@v2
if: failure()
name: Upload ConsentViewController tests results
with:
path: /Users/runner/Library/Developer/Xcode/DerivedData/**/*.xcresult
NativePMExampleApp:
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- name: Select Xcode version 14.0.1
run: sudo xcode-select -s '/Applications/Xcode_14.0.1.app/Contents/Developer'
- name: ConsentViewController testing -> Apple TV (tvOS 16.1)
run: xcodebuild test -scheme NativePMExampleApp -workspace ConsentViewController.xcworkspace -destination 'platform=tvOS Simulator,name=Apple TV,OS=16.1'
- uses: actions/upload-artifact@v2
if: failure()
name: Upload NativePMExampleApp tests results
with:
path: /Users/runner/Library/Developer/Xcode/DerivedData/**/*.xcresult
# MetaApp:
# runs-on: macos-12
# steps:
# - uses: actions/checkout@v2
# - name: Select Xcode version 14.0.1
# run: sudo xcode-select -s '/Applications/Xcode_14.0.1.app/Contents/Developer'
# - name: SourcePointMetaApp testing -> iPhone 14 Pro (iOS 16.0)
# run: xcodebuild test -scheme SourcePointMetaApp -workspace ConsentViewController.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.0'
# - uses: actions/upload-artifact@v2
# if: failure()
# name: Upload SourcePointMetaApp tests results
# with:
# path: /Users/runner/Library/Developer/Xcode/DerivedData/**/*.xcresult