Skip to content

Commit 16e3ecf

Browse files
authored
Migrate CoreDiagnostics to gha (#7033)
1 parent 99a9acd commit 16e3ecf

File tree

2 files changed

+77
-0
lines changed

2 files changed

+77
-0
lines changed
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: core-diagnostics
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'Firebase/CoreDiagnostics/**'
7+
- 'Example/CoreDiagnostics/**'
8+
- 'Interop/CoreDiagnostics/Public/*.h'
9+
- '.github/workflows/core-diagnostics.yml'
10+
- 'Gemfile'
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+
# Don't run on private repo unless it is a PR.
18+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
19+
20+
runs-on: macOS-latest
21+
22+
strategy:
23+
matrix:
24+
target: [ios, tvos, macos]
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Setup Bundler
28+
run: scripts/setup_bundler.sh
29+
- name: Build and test
30+
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreDiagnostics.podspec --platforms=${{ matrix.target }}
31+
32+
spm:
33+
# Don't run on private repo unless it is a PR.
34+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
35+
runs-on: macOS-latest
36+
steps:
37+
- uses: actions/checkout@v2
38+
- name: Xcode 12
39+
run: sudo xcode-select -s /Applications/Xcode_12.app/Contents/Developer
40+
- name: Initialize xcodebuild
41+
run: xcodebuild -list
42+
- name: iOS Unit Tests
43+
run: scripts/third_party/travis/retry.sh ./scripts/build.sh CoreUnit iOS spm
44+
45+
catalyst:
46+
# Don't run on private repo unless it is a PR.
47+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
48+
49+
runs-on: macOS-latest
50+
steps:
51+
- uses: actions/checkout@v2
52+
- name: Setup Bundler
53+
run: scripts/setup_bundler.sh
54+
- name: Setup project and Build Catalyst
55+
run: scripts/test_catalyst.sh FirebaseCoreDiagnostics build
56+
57+
corediagnostics-cron-only:
58+
# Don't run on private repo.
59+
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
60+
61+
runs-on: macos-latest
62+
strategy:
63+
matrix:
64+
target: [ios, tvos, macos]
65+
flags: [
66+
'--use-static-frameworks',
67+
'--use-libraries'
68+
]
69+
needs: pod-lib-lint
70+
steps:
71+
- uses: actions/checkout@v2
72+
- name: Setup Bundler
73+
run: scripts/setup_bundler.sh
74+
- name: PodLibLint CoreDiagnostics Cron
75+
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreDiagnostics.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}

README.md

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

0 commit comments

Comments
 (0)