-
Notifications
You must be signed in to change notification settings - Fork 16
84 lines (84 loc) · 3.53 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
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-latest
steps:
- uses: actions/checkout@v4
- run: brew install swiftlint
- run: swiftlint lint
BuildSwiftPackage:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- run: sudo xcode-select -s /Applications/Xcode_15.3.app
- name: Building Swift Package
run: xcodebuild clean build -scheme SPMBuild -workspace ConsentViewController.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.4'
- uses: actions/upload-artifact@v2
if: failure()
name: Upload Swift Package build results
with:
path: /Users/runner/Library/Developer/Xcode/DerivedData/**/*.xcresult
BuildCarthageProject:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- run: sudo xcode-select -s /Applications/Xcode_15.3.app
- name: Building Carthage Project
run: cd ./SPCarthageTest && ./build.sh
ObjC-ExampleApp-tests:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- run: sudo xcode-select -s /Applications/Xcode_15.3.app
- name: ObjC-ExampleApp testing -> iPhone 15 (iOS 17.4)
run: xcodebuild test -scheme ObjC-ExampleApp -workspace ConsentViewController.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.4'
- uses: actions/upload-artifact@v2
if: failure()
name: Upload ObjCExampleApp tests results
with:
path: /Users/runner/Library/Developer/Xcode/DerivedData/**/*.xcresult
ConsentViewController:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- run: sudo xcode-select -s /Applications/Xcode_15.3.app
- name: ConsentViewController testing -> iPhone 15 (iOS 17.4)
run: xcodebuild test -scheme ConsentViewController_Example -workspace ConsentViewController.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.4'
- 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-latest
steps:
- uses: actions/checkout@v4
- run: sudo xcode-select -s /Applications/Xcode_15.3.app
- name: ConsentViewController testing -> iPhone 15 (iOS 17.4)
run: xcodebuild test -scheme AuthExample -workspace ConsentViewController.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.4'
- uses: actions/upload-artifact@v2
if: failure()
name: Upload ConsentViewController tests results
with:
path: /Users/runner/Library/Developer/Xcode/DerivedData/**/*.xcresult
TVOSExampleApp:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- run: sudo xcode-select -s /Applications/Xcode_15.3.app
- name: ConsentViewController testing -> Apple TV (tvOS 17.4)
run: xcodebuild test -scheme TVOSExampleApp -workspace ConsentViewController.xcworkspace -destination 'platform=tvOS Simulator,name=Apple TV,OS=17.4'
- uses: actions/upload-artifact@v2
if: failure()
name: Upload TVOSExampleApp tests results
with:
path: /Users/runner/Library/Developer/Xcode/DerivedData/**/*.xcresult