Skip to content

Commit a9c559b

Browse files
authored
Migrate CocoaPods integration tests to GHA (#7036)
1 parent 2e5c0f3 commit a9c559b

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: cocoapods-integration
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'CocoapodsIntegrationTest/**'
7+
- '.github/workflows/cocoapods-integration.yml'
8+
- 'Gemfile'
9+
schedule:
10+
# Run every day at 11pm (PST) - cron uses UTC times
11+
- cron: '0 7 * * *'
12+
13+
jobs:
14+
tests:
15+
# Don't run on private repo unless it is a PR.
16+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
17+
18+
runs-on: macOS-latest
19+
strategy:
20+
matrix:
21+
config: [Cocoapods_multiprojects_frameworks, Cocoapods_multiprojects_staticLibs]
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Get realpath
25+
run: brew install coreutils
26+
- name: Build and test
27+
run: |
28+
scripts/third_party/travis/retry.sh ./CocoapodsIntegrationTest/scripts/build_with_environment.sh \
29+
--gemfile=./CocoapodsIntegrationTest/TestEnvironments/${{ matrix.config }}/Gemfile \
30+
--podfile=./CocoapodsIntegrationTest/TestEnvironments/${{ matrix.config }}/Podfile

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![Actions Status][gh-abtesting-badge]][gh-actions]
66
[![Actions Status][gh-appdistribution-badge]][gh-actions]
77
[![Actions Status][gh-auth-badge]][gh-actions]
8+
[![Actions Status][gh-cocoapods-integration-badge]][gh-actions]
89
[![Actions Status][gh-core-badge]][gh-actions]
910
[![Actions Status][gh-core-diagnostics-badge]][gh-actions]
1011
[![Actions Status][gh-crashlytics-badge]][gh-actions]
@@ -286,6 +287,7 @@ Your use of Firebase is governed by the
286287
[gh-abtesting-badge]: https://github.com/firebase/firebase-ios-sdk/workflows/abtesting/badge.svg
287288
[gh-appdistribution-badge]: https://github.com/firebase/firebase-ios-sdk/workflows/appdistribution/badge.svg
288289
[gh-auth-badge]: https://github.com/firebase/firebase-ios-sdk/workflows/auth/badge.svg
290+
[gh-cocoapods-integration-badge]: https://github.com/firebase/firebase-ios-sdk/workflows/cocoapods-integration/badge.svg
289291
[gh-core-badge]: https://github.com/firebase/firebase-ios-sdk/workflows/core/badge.svg
290292
[gh-core-diagnostics-badge]: https://github.com/firebase/firebase-ios-sdk/workflows/core-diagnostics/badge.svg
291293
[gh-crashlytics-badge]: https://github.com/firebase/firebase-ios-sdk/workflows/crashlytics/badge.svg

0 commit comments

Comments
 (0)