Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate Quickstart CI script #1258

Merged
merged 56 commits into from
Aug 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
dd72e83
Check secrets within test script
jrcrespoh Aug 20, 2021
ca0e315
Unify spm and cocoapods test scripts
jrcrespoh Aug 20, 2021
21b16d7
Enable spm, cocoapods, obj-c, swift, and swiftui testing
jrcrespoh Aug 21, 2021
f6d070c
Update abtesting.yml
jrcrespoh Aug 21, 2021
f197473
Update admob.yml
jrcrespoh Aug 21, 2021
5b984aa
Update analytics.yml
jrcrespoh Aug 21, 2021
9e119b3
Update authentication.yml
jrcrespoh Aug 21, 2021
f911b98
Add config catalyst flags to test script
jrcrespoh Aug 21, 2021
f83c2f0
Add general catalyst support to test script
jrcrespoh Aug 21, 2021
c45ac9f
Update config.yml
jrcrespoh Aug 21, 2021
338438e
Update crashlytics.yml
jrcrespoh Aug 21, 2021
23af531
Update database.yml
jrcrespoh Aug 21, 2021
855ad28
Update dynamiclinks.yml
jrcrespoh Aug 21, 2021
a75d288
Update firestore.yml
jrcrespoh Aug 21, 2021
e3e08eb
Update functions.yml
jrcrespoh Aug 21, 2021
370a9bc
Update inappmessaging.yml
jrcrespoh Aug 21, 2021
be2102d
Update installations.yml
jrcrespoh Aug 21, 2021
6cf71b4
Update messaging.yml
jrcrespoh Aug 21, 2021
ef8dc49
Update performance.yml
jrcrespoh Aug 21, 2021
aa8946a
Update storage.yml
jrcrespoh Aug 21, 2021
bc6abe6
Simplify run command
jrcrespoh Aug 21, 2021
1d14c4e
Fix permissions for test.sh
jrcrespoh Aug 21, 2021
e2c3b3b
Upgrade catalyst to macOS 11
jrcrespoh Aug 21, 2021
49aa65a
Fix authentication.yml incorrect sample
jrcrespoh Aug 21, 2021
8105923
Remove DIR from non-SPM quoickstarts
jrcrespoh Aug 21, 2021
4f5d4a9
Add secrets
jrcrespoh Aug 21, 2021
3fdcd3b
Downgrade config tests to macOS 10.15
jrcrespoh Aug 21, 2021
045920b
Remove macosx11 sdk from catalyst in script
jrcrespoh Aug 21, 2021
624ff0d
Add GHA on macOS 11 to abtesting
jrcrespoh Aug 21, 2021
5c7aa84
Fix abtesting GHA macOS 11
jrcrespoh Aug 21, 2021
aeabcd4
Add GHA macOS 11 to performance
jrcrespoh Aug 21, 2021
3142d05
Refactor abtesting.yml
jrcrespoh Aug 21, 2021
d3481e9
Refactor performance.yml
jrcrespoh Aug 21, 2021
67bb071
Change job names
jrcrespoh Aug 21, 2021
5c7a8be
Refactor admob.yml
jrcrespoh Aug 21, 2021
416445b
Refactor analytics.yml
jrcrespoh Aug 21, 2021
b593a95
Refactor analytics.yml correctly
jrcrespoh Aug 21, 2021
fa961c0
Refactor authentication.yml
jrcrespoh Aug 21, 2021
909f1ea
Refactor config.yml
jrcrespoh Aug 21, 2021
88e8e90
Refactor crashlytics.yml
jrcrespoh Aug 21, 2021
b6c16c1
Refactor crashlytics.yml correctly
jrcrespoh Aug 21, 2021
3cb11a6
Refactor database.yml
jrcrespoh Aug 21, 2021
012d83a
Refactor database.yml correctly
jrcrespoh Aug 21, 2021
a20b3cd
Refactor dynamiclinks.yml
jrcrespoh Aug 21, 2021
2dbbdb1
Refactor firestore.yml
jrcrespoh Aug 21, 2021
8d45856
Refactor functions.yml
jrcrespoh Aug 21, 2021
9a5c1a6
Refactor inappmessaging.yml
jrcrespoh Aug 21, 2021
6e771e7
Refactor installations.yml
jrcrespoh Aug 21, 2021
d9049c7
Refactor messaging.yml
jrcrespoh Aug 21, 2021
c86fa95
Refactor storage.yml
jrcrespoh Aug 21, 2021
e5f2b9d
Fix spm jobs
jrcrespoh Aug 21, 2021
abe81aa
Fix GHA macOS 11 for performance
jrcrespoh Aug 21, 2021
9467e32
Indicate when tests do not run
jrcrespoh Aug 21, 2021
64e3d3e
Disable tests for problematic quickstarts
jrcrespoh Aug 21, 2021
6d9e58e
Fix spm setup
jrcrespoh Aug 23, 2021
21ae9de
Fix spm setup dir
jrcrespoh Aug 23, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 30 additions & 21 deletions .github/workflows/abtesting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,17 @@ on:

workflow_dispatch:

env:
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
SAMPLE: ABTesting

jobs:
build:
name: build
cocoapods:
name: cocoapods
runs-on: macOS-latest

env:
SPM: false
TEST: true
steps:
- name: Checkout
uses: actions/checkout@master
Expand All @@ -35,27 +41,30 @@ jobs:
bundle exec pod install --repo-update
cd ..
../scripts/install_prereqs/abtesting.sh
env:
SAMPLE: ABTesting
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
LEGACY: true
- name: Build Swift
run: |
./scripts/test.sh
run: ./scripts/test.sh
env:
SAMPLE: ABTesting
LEGACY: true
- name: Build and Test SwiftUI
SWIFT_SUFFIX: ""
OS: iOS
DEVICE: iPhone 11
spm:
name: spm
runs-on: macOS-11
env:
SPM: true
DIR: abtesting
TEST: true
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
cd scripts
source install_prereqs/abtesting.sh
cd ..
source scripts/test_spm.sh
gem install xcpretty
cd abtesting
../scripts/install_prereqs/abtesting.sh
- name: Build and Test SwiftUI
run: ./scripts/test.sh
env:
SAMPLE: ABTesting
DIR: abtesting
OS: iOS
DEVICE: iPhone 11
SWIFT_DEFINES: ""
TEST: true
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
DEVICE: iPhone 12
30 changes: 16 additions & 14 deletions .github/workflows/admob.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,20 @@ on:

workflow_dispatch:

env:
SAMPLE: AdMob
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
build:
name: build
cocoapods:
name: cocoapods
runs-on: macOS-latest

env:
SPM: false
LEGACY: false
OS: iOS
DEVICE: iPhone 11
TEST: false
steps:
- name: Checkout
uses: actions/checkout@master
Expand All @@ -34,18 +43,11 @@ jobs:
gem install xcpretty
bundle exec pod install --repo-update
../scripts/install_prereqs/admob.sh
env:
SAMPLE: AdMob
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
- name: Build ObjC
run: |
./scripts/test.sh
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: ''
SAMPLE: AdMob
SWIFT_SUFFIX: ""
- name: Build Swift
run: |
./scripts/test.sh
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: 'Swift'
SAMPLE: AdMob
SWIFT_SUFFIX: Swift
24 changes: 14 additions & 10 deletions .github/workflows/analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,20 @@ on:

workflow_dispatch:

env:
SAMPLE: Analytics
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
build:
name: build
cocoapods:
name: cocoapods
runs-on: macOS-latest

env:
SPM: false
LEGACY: false
OS: iOS
DEVICE: iPhone 11
TEST: true
steps:
- name: Checkout
uses: actions/checkout@master
Expand All @@ -34,12 +43,7 @@ jobs:
gem install xcpretty
bundle exec pod install --repo-update
../scripts/install_prereqs/analytics.sh
env:
SAMPLE: Analytics
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
- name: Build Swift
run: |
./scripts/test.sh
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: ''
SAMPLE: Analytics
SWIFT_SUFFIX: ""
21 changes: 13 additions & 8 deletions .github/workflows/authentication.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,20 @@ on:

workflow_dispatch:

env:
SAMPLE: Authentication
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
build:
name: build
cocoapods:
name: cocoapods
runs-on: macOS-latest

env:
SPM: false
LEGACY: false
OS: iOS
DEVICE: iPhone 11
TEST: false
steps:
- name: Checkout
uses: actions/checkout@master
Expand All @@ -34,11 +43,7 @@ jobs:
gem install xcpretty
bundle exec pod install --repo-update
../scripts/install_prereqs/authentication.sh
env:
SAMPLE: Authentication
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
- name: Build Swift
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: ''
SAMPLE: Authentication
SWIFT_SUFFIX: ""
39 changes: 15 additions & 24 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,19 @@ on:

workflow_dispatch:

env:
SAMPLE: Config
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
build:
name: build
cocoapods:
name: cocoapods
runs-on: macOS-latest

env:
SPM: false
LEGACY: false
SWIFT_SUFFIX: ""
TEST: true
steps:
- name: Checkout
uses: actions/checkout@master
Expand All @@ -34,29 +42,12 @@ jobs:
gem install xcpretty
bundle exec pod install --repo-update
../scripts/install_prereqs/config.sh
env:
SAMPLE: Config
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
- name: Build Swift
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: ''
SAMPLE: Config
OS: iOS
DEVICE: iPhone 11
- name: Build Catalyst
run: |
cd config
../scripts/install_prereqs/config.sh
pod install
xcodebuild \
-configuration Debug \
-workspace ConfigExample.xcworkspace \
-scheme ConfigExample \
-sdk macosx \
ARCHS=x86_64 VALID_ARCHS=x86_64 ONLY_ACTIVE_ARCH=NO \
SUPPORTS_MACCATALYST=YES SUPPORTS_UIKITFORMAC=YES \
CODE_SIGN_IDENTITY=- CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO \
build \
| xcpretty
run: ./scripts/test.sh
env:
SAMPLE: Config
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
OS: catalyst
97 changes: 40 additions & 57 deletions .github/workflows/crashlytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,20 @@ on:

workflow_dispatch:

env:
SAMPLE: Crashlytics
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
build:
name: build
cocoapods:
name: cocoapods
runs-on: macOS-latest

env:
SPM: false
LEGACY: true
OS: iOS
DEVICE: iPhone 11
TEST: true
steps:
- name: Checkout
uses: actions/checkout@master
Expand All @@ -35,71 +44,45 @@ jobs:
bundle exec pod install --repo-update
cd ..
../scripts/install_prereqs/crashlytics.sh
env:
SAMPLE: Crashlytics
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
LEGACY: true
- name: Build ObjC
run: ./scripts/test.sh
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: ''
SAMPLE: Crashlytics
LEGACY: true
SWIFT_SUFFIX: ""
- name: Build Swift
run: ./scripts/test.sh
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: 'Swift'
SAMPLE: Crashlytics
LEGACY: true
- name: Build SwiftUI (iOS)
SWIFT_SUFFIX: Swift
spm:
name: spm
runs-on: macOS-11
env:
SPM: true
DIR: crashlytics
TEST: false
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
cd scripts
source install_prereqs/crashlytics.sh
cd ..
source scripts/test_spm.sh
env:
SAMPLE: Crashlytics
DIR: crashlytics
gem install xcpretty
cd crashlytics
../scripts/install_prereqs/crashlytics.sh
- name: Build SwiftUI (iOS)
run: ./scripts/test.sh
env:
OS: iOS
DEVICE: iPhone 11
SWIFT_DEFINES: ""
TEST: false
DEVICE: iPhone 12
- name: Build SwiftUI (tvOS)
run: |
cd scripts
source install_prereqs/crashlytics.sh
cd ..
source scripts/test_spm.sh
env:
SAMPLE: Crashlytics
DIR: crashlytics
run: ./scripts/test.sh
env:
OS: tvOS
DEVICE: Apple TV
SWIFT_DEFINES: ""
TEST: false
DEVICE: Apple TV 4K (at 1080p) (2nd generation)
- name: Build SwiftUI (macOS)
run: |
cd scripts
source install_prereqs/crashlytics.sh
cd ..
source scripts/test_spm.sh
env:
SAMPLE: Crashlytics
DIR: crashlytics
run: ./scripts/test.sh
env:
OS: macOS
DEVICE: localhost
SWIFT_DEFINES: ""
TEST: false
- name: Build SwiftUI (watchOS)
run: |
cd scripts
source install_prereqs/crashlytics.sh
cd ..
source scripts/test_spm.sh
run: ./scripts/test.sh
env:
SAMPLE: Crashlytics
DIR: crashlytics
OS: watchOS
DEVICE: Apple Watch Series 5 - 44mm
SWIFT_DEFINES: ""
TEST: false
Loading