Skip to content

Commit d113f26

Browse files
authored
Migrate GoogleUtilitiesComponents CI to GHA (#7031)
1 parent b2097b7 commit d113f26

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: google-utilities-components
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'GoogleUtilitiesComponents**'
7+
- '.github/workflows/google-utilities-components.yml'
8+
- 'Gemfile'
9+
schedule:
10+
# Run every day at 11pm (PST) - cron uses UTC times
11+
- cron: '0 7 * * *'
12+
13+
jobs:
14+
pod-lib-lint:
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+
target: [ios, tvos, macos]
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Setup Bundler
25+
run: scripts/setup_bundler.sh
26+
- name: Build and test
27+
run: |
28+
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleUtilitiesComponents.podspec \
29+
--platforms=${{ matrix.target }}
30+
31+
catalyst:
32+
# Don't run on private repo unless it is a PR.
33+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
34+
35+
runs-on: macOS-latest
36+
steps:
37+
- uses: actions/checkout@v2
38+
- name: Setup Bundler
39+
run: scripts/setup_bundler.sh
40+
- name: Setup project and Build for Catalyst
41+
# Only build the unit tests on Catalyst. Test stopped working when GHA moved to Xcode 11.4.1.
42+
run: scripts/test_catalyst.sh GoogleUtilitiesComponents build GoogleUtilitiesComponents-Unit-unit
43+
44+
utilities-cron-only:
45+
# Don't run on private repo.
46+
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
47+
48+
runs-on: macos-latest
49+
strategy:
50+
matrix:
51+
target: [ios, tvos, macos]
52+
flags: [
53+
'--use-static-frameworks',
54+
'--use-libraries'
55+
]
56+
needs: pod-lib-lint
57+
steps:
58+
- uses: actions/checkout@v2
59+
- name: Setup Bundler
60+
run: scripts/setup_bundler.sh
61+
- name: PodLibLint GoogleUtilitiesComponents Cron
62+
run: |
63+
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb \
64+
GoogleUtilitiesComponents.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
[![Actions Status][gh-firestore-badge]][gh-actions]
1515
[![Actions Status][gh-functions-badge]][gh-actions]
1616
[![Actions Status][gh-google-utilities-badge]][gh-actions]
17+
[![Actions Status][gh-google-utilities-components-badge]][gh-actions]
1718
[![Actions Status][gh-inappmessaging-badge]][gh-actions]
1819
[![Actions Status][gh-interop-badge]][gh-actions]
1920
[![Actions Status][gh-messaging-badge]][gh-actions]
@@ -293,6 +294,7 @@ Your use of Firebase is governed by the
293294
[gh-firestore-badge]: https://github.com/firebase/firebase-ios-sdk/workflows/firestore/badge.svg
294295
[gh-functions-badge]: https://github.com/firebase/firebase-ios-sdk/workflows/functions/badge.svg
295296
[gh-google-utilities-badge]: https://github.com/firebase/firebase-ios-sdk/workflows/google-utilities/badge.svg
297+
[gh-google-utilities-components-badge]: https://github.com/firebase/firebase-ios-sdk/workflows/google-utilities-components/badge.svg
296298
[gh-inappmessaging-badge]: https://github.com/firebase/firebase-ios-sdk/workflows/inappmessaging/badge.svg
297299
[gh-interop-badge]: https://github.com/firebase/firebase-ios-sdk/workflows/interop/badge.svg
298300
[gh-messaging-badge]: https://github.com/firebase/firebase-ios-sdk/workflows/messaging/badge.svg

0 commit comments

Comments
 (0)