-
Notifications
You must be signed in to change notification settings - Fork 39
38 lines (29 loc) · 1.19 KB
/
build-and-quality-checks.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
name: Code Quality Checks
on:
pull_request:
branches: ['master', 'develop']
types: ['opened', 'reopened', 'synchronize']
jobs:
build:
name: Code Quality Checks
runs-on: macOS-latest
steps:
- name: Checkout source branch
uses: actions/checkout@v4
- name: Install xcpretty
run: gem install xcpretty
- name: Install Cocoapods
run: gem install cocoapods
- name: Pod install
run: pod install --repo-update
- name: Build SDK(iOS)
run: |
xcodebuild build -scheme Rudder_iOS -workspace Rudder.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 14' | xcpretty
- name: Build SDK(watchOS)
run: |
xcodebuild build -scheme Rudder_watchOS -workspace Rudder.xcworkspace -destination 'platform=watchOS Simulator,name=Apple Watch Series 7 (45mm)' | xcpretty
- name: Build SDK(tvOS)
run: |
xcodebuild build -scheme Rudder_tvOS -workspace Rudder.xcworkspace -destination 'platform=tvOS Simulator,name=Apple TV' | xcpretty
- name: Execute pod lint
run: pod lib lint --no-clean --allow-warnings