Skip to content

Commit 7593515

Browse files
authored
FirebasePod, SymbolCollision and Interop tests to GHA (#5273)
1 parent 059c24f commit 7593515

File tree

6 files changed

+82
-25
lines changed

6 files changed

+82
-25
lines changed

.github/workflows/firebasepod.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: firebasepod
2+
3+
# Verify that the Firebase.podspec will successfully `pod install`.
4+
5+
on:
6+
pull_request:
7+
paths:
8+
- '*.podspec'
9+
- 'CoreOnly/**'
10+
- '.github/workflows/firebasepod.yml'
11+
schedule:
12+
# Run every day at 11pm (PST) - cron uses UTC times
13+
- cron: '0 7 * * *'
14+
15+
jobs:
16+
installation-test:
17+
runs-on: macOS-latest
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Setup Bundler
22+
run: scripts/setup_bundler.sh
23+
- name: Prereqs
24+
run: scripts/install_prereqs.sh FirebasePod iOS
25+
- name: Build
26+
run: scripts/build.sh FirebasePod iOS

.github/workflows/interop.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: interop
2+
3+
# All Interop pods in the repo are linted here.
4+
5+
on:
6+
pull_request:
7+
paths:
8+
- 'Interop/**'
9+
- '*Interop.podspec'
10+
- '.github/workflows/interop.yml'
11+
schedule:
12+
# Run every day at 11pm (PST) - cron uses UTC times
13+
- cron: '0 7 * * *'
14+
15+
jobs:
16+
pod-lib-lint:
17+
runs-on: macOS-latest
18+
strategy:
19+
matrix:
20+
pod: [Analytics, Auth, CoreDiagnostics]
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Setup Bundler
25+
run: scripts/setup_bundler.sh
26+
- name: Interop Pod
27+
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb Firebase${{ matrix.pod }}Interop.podspec

.github/workflows/symbolcollision.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: symbolcollision
2+
3+
# Tests the Pods listed in SymbolCollisionTest/Podfile for symbol collisions.
4+
5+
on:
6+
pull_request:
7+
paths:
8+
- '.github/workflows/symbolcollision.yml'
9+
- 'SymbolCollisionTest/**'
10+
schedule:
11+
# Run every day at 11pm (PST) - cron uses UTC times
12+
- cron: '0 7 * * *'
13+
14+
jobs:
15+
installation-test:
16+
runs-on: macOS-latest
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Setup Bundler
21+
run: scripts/setup_bundler.sh
22+
- name: Prereqs
23+
run: scripts/install_prereqs.sh SymbolCollision iOS
24+
- name: Build
25+
run: scripts/build.sh SymbolCollision iOS

.travis.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,6 @@ jobs:
398398
env:
399399
- PROJECT=Firebase METHOD=pod-lib-lint
400400
script:
401-
- travis_retry ./scripts/if_changed.sh ./scripts/pod_lib_lint.rb FirebaseAnalyticsInterop.podspec
402-
- travis_retry ./scripts/if_changed.sh ./scripts/pod_lib_lint.rb FirebaseAuthInterop.podspec
403-
- travis_retry ./scripts/if_changed.sh ./scripts/pod_lib_lint.rb FirebaseCoreDiagnosticsInterop.podspec
404401
- travis_retry ./scripts/if_changed.sh ./scripts/pod_lib_lint.rb FirebaseInAppMessaging.podspec
405402

406403
# pod lib lint to check build and warnings for static library build - only on cron jobs
@@ -420,24 +417,6 @@ jobs:
420417
- travis_retry ./scripts/if_changed.sh ./scripts/pod_lib_lint.rb GoogleDataTransport.podspec --platforms=ios
421418
- travis_retry ./scripts/if_changed.sh ./scripts/pod_lib_lint.rb GoogleDataTransportCCTSupport.podspec --platforms=ios
422419

423-
- stage: test
424-
env:
425-
- PROJECT=FirebasePod PLATFORM=iOS METHOD=xcodebuild
426-
before_install:
427-
- ./scripts/if_changed.sh ./scripts/install_prereqs.sh
428-
script:
429-
- travis_retry ./scripts/if_changed.sh ./scripts/build.sh $PROJECT $PLATFORM
430-
431-
# Daily test for symbol collisions between Firebase and CocoaPods.
432-
- stage: test
433-
if: type = cron
434-
env:
435-
- PROJECT=SymbolCollision PLATFORM=iOS METHOD=xcodebuild
436-
before_install:
437-
- ./scripts/install_prereqs.sh
438-
script:
439-
- travis_retry ./scripts/build.sh $PROJECT $PLATFORM $METHOD
440-
441420
# Validate Cocoapods configurations
442421
# This may take long time, so we would like to run it only once all other tests pass
443422
# Validate Cocoapods 1.7.0 compatibility

scripts/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ fi
287287

288288

289289
case "$product-$platform-$method" in
290-
FirebasePod-*-xcodebuild)
290+
FirebasePod-iOS-*)
291291
RunXcodebuild \
292292
-workspace 'CoreOnly/Tests/FirebasePodTest/FirebasePodTest.xcworkspace' \
293293
-scheme "FirebasePodTest" \
@@ -344,7 +344,7 @@ case "$product-$platform-$method" in
344344
)
345345
;;
346346

347-
SymbolCollision-*-xcodebuild)
347+
SymbolCollision-*-*)
348348
RunXcodebuild \
349349
-workspace 'SymbolCollisionTest/SymbolCollisionTest.xcworkspace' \
350350
-scheme "SymbolCollisionTest" \

scripts/install_prereqs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ fi
112112

113113
case "$project-$platform-$method" in
114114

115-
FirebasePod-iOS-xcodebuild)
115+
FirebasePod-iOS-*)
116116
install_xcpretty
117117
bundle exec pod install --project-directory=CoreOnly/Tests/FirebasePodTest --repo-update
118118
;;
@@ -180,7 +180,7 @@ case "$project-$platform-$method" in
180180
pip install six
181181
;;
182182

183-
SymbolCollision-*-xcodebuild)
183+
SymbolCollision-*-*)
184184
install_xcpretty
185185
bundle exec pod install --project-directory=SymbolCollisionTest --repo-update
186186
;;

0 commit comments

Comments
 (0)