Skip to content

Commit 3c6f6de

Browse files
authored
Consolidate Quickstart CI script (#1258)
* Unify SPM, CocoaPods, Obj-C, Swift, and SwiftUI script * Update Quickstart workflows * Add catalyst support to script * Downgrade Config tests to macOS 10.15 * Use macOS 11 for SPM Quickstarts * Disable tests for problematic Quickstarts
1 parent 242f4c9 commit 3c6f6de

File tree

18 files changed

+409
-406
lines changed

18 files changed

+409
-406
lines changed

.github/workflows/abtesting.yml

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,17 @@ on:
1818

1919
workflow_dispatch:
2020

21+
env:
22+
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
23+
SAMPLE: ABTesting
24+
2125
jobs:
22-
build:
23-
name: build
26+
cocoapods:
27+
name: cocoapods
2428
runs-on: macOS-latest
25-
29+
env:
30+
SPM: false
31+
TEST: true
2632
steps:
2733
- name: Checkout
2834
uses: actions/checkout@master
@@ -35,27 +41,30 @@ jobs:
3541
bundle exec pod install --repo-update
3642
cd ..
3743
../scripts/install_prereqs/abtesting.sh
38-
env:
39-
SAMPLE: ABTesting
40-
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
41-
LEGACY: true
4244
- name: Build Swift
43-
run: |
44-
./scripts/test.sh
45+
run: ./scripts/test.sh
4546
env:
46-
SAMPLE: ABTesting
4747
LEGACY: true
48-
- name: Build and Test SwiftUI
48+
SWIFT_SUFFIX: ""
49+
OS: iOS
50+
DEVICE: iPhone 11
51+
spm:
52+
name: spm
53+
runs-on: macOS-11
54+
env:
55+
SPM: true
56+
DIR: abtesting
57+
TEST: true
58+
steps:
59+
- name: Checkout
60+
uses: actions/checkout@master
61+
- name: Setup
4962
run: |
50-
cd scripts
51-
source install_prereqs/abtesting.sh
52-
cd ..
53-
source scripts/test_spm.sh
63+
gem install xcpretty
64+
cd abtesting
65+
../scripts/install_prereqs/abtesting.sh
66+
- name: Build and Test SwiftUI
67+
run: ./scripts/test.sh
5468
env:
55-
SAMPLE: ABTesting
56-
DIR: abtesting
5769
OS: iOS
58-
DEVICE: iPhone 11
59-
SWIFT_DEFINES: ""
60-
TEST: true
61-
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
70+
DEVICE: iPhone 12

.github/workflows/admob.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,20 @@ on:
1818

1919
workflow_dispatch:
2020

21+
env:
22+
SAMPLE: AdMob
23+
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
24+
2125
jobs:
22-
build:
23-
name: build
26+
cocoapods:
27+
name: cocoapods
2428
runs-on: macOS-latest
25-
29+
env:
30+
SPM: false
31+
LEGACY: false
32+
OS: iOS
33+
DEVICE: iPhone 11
34+
TEST: false
2635
steps:
2736
- name: Checkout
2837
uses: actions/checkout@master
@@ -34,18 +43,11 @@ jobs:
3443
gem install xcpretty
3544
bundle exec pod install --repo-update
3645
../scripts/install_prereqs/admob.sh
37-
env:
38-
SAMPLE: AdMob
39-
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
4046
- name: Build ObjC
41-
run: |
42-
./scripts/test.sh
47+
run: ./scripts/test.sh
4348
env:
44-
SWIFT_SUFFIX: ''
45-
SAMPLE: AdMob
49+
SWIFT_SUFFIX: ""
4650
- name: Build Swift
47-
run: |
48-
./scripts/test.sh
51+
run: ./scripts/test.sh
4952
env:
50-
SWIFT_SUFFIX: 'Swift'
51-
SAMPLE: AdMob
53+
SWIFT_SUFFIX: Swift

.github/workflows/analytics.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,20 @@ on:
1818

1919
workflow_dispatch:
2020

21+
env:
22+
SAMPLE: Analytics
23+
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
24+
2125
jobs:
22-
build:
23-
name: build
26+
cocoapods:
27+
name: cocoapods
2428
runs-on: macOS-latest
25-
29+
env:
30+
SPM: false
31+
LEGACY: false
32+
OS: iOS
33+
DEVICE: iPhone 11
34+
TEST: true
2635
steps:
2736
- name: Checkout
2837
uses: actions/checkout@master
@@ -34,12 +43,7 @@ jobs:
3443
gem install xcpretty
3544
bundle exec pod install --repo-update
3645
../scripts/install_prereqs/analytics.sh
37-
env:
38-
SAMPLE: Analytics
39-
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
4046
- name: Build Swift
41-
run: |
42-
./scripts/test.sh
47+
run: ./scripts/test.sh
4348
env:
44-
SWIFT_SUFFIX: ''
45-
SAMPLE: Analytics
49+
SWIFT_SUFFIX: ""

.github/workflows/authentication.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,20 @@ on:
1818

1919
workflow_dispatch:
2020

21+
env:
22+
SAMPLE: Authentication
23+
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
24+
2125
jobs:
22-
build:
23-
name: build
26+
cocoapods:
27+
name: cocoapods
2428
runs-on: macOS-latest
25-
29+
env:
30+
SPM: false
31+
LEGACY: false
32+
OS: iOS
33+
DEVICE: iPhone 11
34+
TEST: false
2635
steps:
2736
- name: Checkout
2837
uses: actions/checkout@master
@@ -34,11 +43,7 @@ jobs:
3443
gem install xcpretty
3544
bundle exec pod install --repo-update
3645
../scripts/install_prereqs/authentication.sh
37-
env:
38-
SAMPLE: Authentication
39-
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
4046
- name: Build Swift
4147
run: ./scripts/test.sh
4248
env:
43-
SWIFT_SUFFIX: ''
44-
SAMPLE: Authentication
49+
SWIFT_SUFFIX: ""

.github/workflows/config.yml

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,19 @@ on:
1818

1919
workflow_dispatch:
2020

21+
env:
22+
SAMPLE: Config
23+
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
24+
2125
jobs:
22-
build:
23-
name: build
26+
cocoapods:
27+
name: cocoapods
2428
runs-on: macOS-latest
25-
29+
env:
30+
SPM: false
31+
LEGACY: false
32+
SWIFT_SUFFIX: ""
33+
TEST: true
2634
steps:
2735
- name: Checkout
2836
uses: actions/checkout@master
@@ -34,29 +42,12 @@ jobs:
3442
gem install xcpretty
3543
bundle exec pod install --repo-update
3644
../scripts/install_prereqs/config.sh
37-
env:
38-
SAMPLE: Config
39-
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
4045
- name: Build Swift
4146
run: ./scripts/test.sh
4247
env:
43-
SWIFT_SUFFIX: ''
44-
SAMPLE: Config
48+
OS: iOS
49+
DEVICE: iPhone 11
4550
- name: Build Catalyst
46-
run: |
47-
cd config
48-
../scripts/install_prereqs/config.sh
49-
pod install
50-
xcodebuild \
51-
-configuration Debug \
52-
-workspace ConfigExample.xcworkspace \
53-
-scheme ConfigExample \
54-
-sdk macosx \
55-
ARCHS=x86_64 VALID_ARCHS=x86_64 ONLY_ACTIVE_ARCH=NO \
56-
SUPPORTS_MACCATALYST=YES SUPPORTS_UIKITFORMAC=YES \
57-
CODE_SIGN_IDENTITY=- CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO \
58-
build \
59-
| xcpretty
51+
run: ./scripts/test.sh
6052
env:
61-
SAMPLE: Config
62-
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
53+
OS: catalyst

.github/workflows/crashlytics.yml

Lines changed: 40 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,20 @@ on:
1818

1919
workflow_dispatch:
2020

21+
env:
22+
SAMPLE: Crashlytics
23+
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
24+
2125
jobs:
22-
build:
23-
name: build
26+
cocoapods:
27+
name: cocoapods
2428
runs-on: macOS-latest
25-
29+
env:
30+
SPM: false
31+
LEGACY: true
32+
OS: iOS
33+
DEVICE: iPhone 11
34+
TEST: true
2635
steps:
2736
- name: Checkout
2837
uses: actions/checkout@master
@@ -35,71 +44,45 @@ jobs:
3544
bundle exec pod install --repo-update
3645
cd ..
3746
../scripts/install_prereqs/crashlytics.sh
38-
env:
39-
SAMPLE: Crashlytics
40-
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
41-
LEGACY: true
4247
- name: Build ObjC
43-
run: ./scripts/test.sh
48+
run: ./scripts/test.sh
4449
env:
45-
SWIFT_SUFFIX: ''
46-
SAMPLE: Crashlytics
47-
LEGACY: true
50+
SWIFT_SUFFIX: ""
4851
- name: Build Swift
49-
run: ./scripts/test.sh
52+
run: ./scripts/test.sh
5053
env:
51-
SWIFT_SUFFIX: 'Swift'
52-
SAMPLE: Crashlytics
53-
LEGACY: true
54-
- name: Build SwiftUI (iOS)
54+
SWIFT_SUFFIX: Swift
55+
spm:
56+
name: spm
57+
runs-on: macOS-11
58+
env:
59+
SPM: true
60+
DIR: crashlytics
61+
TEST: false
62+
steps:
63+
- name: Checkout
64+
uses: actions/checkout@master
65+
- name: Setup
5566
run: |
56-
cd scripts
57-
source install_prereqs/crashlytics.sh
58-
cd ..
59-
source scripts/test_spm.sh
60-
env:
61-
SAMPLE: Crashlytics
62-
DIR: crashlytics
67+
gem install xcpretty
68+
cd crashlytics
69+
../scripts/install_prereqs/crashlytics.sh
70+
- name: Build SwiftUI (iOS)
71+
run: ./scripts/test.sh
72+
env:
6373
OS: iOS
64-
DEVICE: iPhone 11
65-
SWIFT_DEFINES: ""
66-
TEST: false
74+
DEVICE: iPhone 12
6775
- name: Build SwiftUI (tvOS)
68-
run: |
69-
cd scripts
70-
source install_prereqs/crashlytics.sh
71-
cd ..
72-
source scripts/test_spm.sh
73-
env:
74-
SAMPLE: Crashlytics
75-
DIR: crashlytics
76+
run: ./scripts/test.sh
77+
env:
7678
OS: tvOS
77-
DEVICE: Apple TV
78-
SWIFT_DEFINES: ""
79-
TEST: false
79+
DEVICE: Apple TV 4K (at 1080p) (2nd generation)
8080
- name: Build SwiftUI (macOS)
81-
run: |
82-
cd scripts
83-
source install_prereqs/crashlytics.sh
84-
cd ..
85-
source scripts/test_spm.sh
86-
env:
87-
SAMPLE: Crashlytics
88-
DIR: crashlytics
81+
run: ./scripts/test.sh
82+
env:
8983
OS: macOS
90-
DEVICE: localhost
91-
SWIFT_DEFINES: ""
92-
TEST: false
9384
- name: Build SwiftUI (watchOS)
94-
run: |
95-
cd scripts
96-
source install_prereqs/crashlytics.sh
97-
cd ..
98-
source scripts/test_spm.sh
85+
run: ./scripts/test.sh
9986
env:
100-
SAMPLE: Crashlytics
101-
DIR: crashlytics
10287
OS: watchOS
10388
DEVICE: Apple Watch Series 5 - 44mm
104-
SWIFT_DEFINES: ""
105-
TEST: false

0 commit comments

Comments
 (0)