Skip to content

Commit 1fb6a77

Browse files
Add github action for Messaging (#4970)
1 parent f9a0ee2 commit 1fb6a77

File tree

28 files changed

+80
-4
lines changed

28 files changed

+80
-4
lines changed

.github/workflows/core.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- cron: '0 7 * * *'
1111

1212
jobs:
13-
pod_lib_lint:
13+
pod-lib-lint:
1414
runs-on: macOS-latest
1515

1616
strategy:
@@ -34,7 +34,7 @@ jobs:
3434
# Tests are skipped since the Swift tests need modules.
3535
'--skip-tests --use-libraries'
3636
]
37-
needs: pod_lib_lint
37+
needs: pod-lib-lint
3838
steps:
3939
- uses: actions/checkout@v2
4040
- name: Setup Bundler

.github/workflows/messaging.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: messaging
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'Firebase/Messaging/**'
7+
8+
#Podspec
9+
- 'FirebaseMessaging.podspec'
10+
11+
- '.github/workflows/messaging.yml'
12+
schedule:
13+
# Run every day at 11pm (PST) - cron uses UTC times
14+
- cron: '0 7 * * *'
15+
16+
jobs:
17+
pod-lib-lint:
18+
runs-on: macOS-latest
19+
20+
strategy:
21+
matrix:
22+
target: [ios, tvos, macos]
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Setup Bundler
26+
run: scripts/setup_bundler.sh
27+
- name: Build and test
28+
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMessaging.podspec --platforms=${{ matrix.target }}
29+
30+
pod-lib-lint-watchos:
31+
runs-on: macOS-latest
32+
33+
steps:
34+
- uses: actions/checkout@v2
35+
- name: Setup Bundler
36+
run: scripts/setup_bundler.sh
37+
- name: Build and test
38+
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMessaging.podspec --skip-tests --platforms=watchos
39+
40+
41+
messaging-cron-only:
42+
runs-on: macos-latest
43+
if: github.event_name == 'schedule'
44+
strategy:
45+
matrix:
46+
target: [ios, tvos, macos]
47+
flags: [
48+
'--use-modular-headers',
49+
'--skip-tests --use-libraries'
50+
]
51+
needs: pod-lib-lint
52+
steps:
53+
- uses: actions/checkout@v2
54+
- name: Setup Bundler
55+
run: scripts/setup_bundler.sh
56+
- name: PodLibLint Messaging Cron
57+
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMessaging.podspec --platforms=${{ matrix.target }}
58+
59+
messaging-watchos-cron-only:
60+
runs-on: macos-latest
61+
if: github.event_name == 'schedule'
62+
strategy:
63+
matrix:
64+
flags: [
65+
'--skip-tests --use-modular-headers',
66+
'--skip-tests --use-libraries'
67+
]
68+
needs: pod-lib-lint-watchos
69+
steps:
70+
- uses: actions/checkout@v2
71+
- name: Setup Bundler
72+
run: scripts/setup_bundler.sh
73+
- name: PodLibLint Messaging Cron
74+
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMessaging.podspec --platforms=watchos
75+
76+

.github/workflows/storage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
2525
run: scripts/third_party/travis/retry.sh scripts/build.sh Storage all
2626

27-
pod_lib_lint:
27+
pod-lib-lint:
2828
runs-on: macOS-latest
2929

3030
strategy:
@@ -47,7 +47,7 @@ jobs:
4747
'--skip-tests --use-modular-headers',
4848
'--skip-tests --use-libraries'
4949
]
50-
needs: pod_lib_lint
50+
needs: pod-lib-lint
5151
steps:
5252
- uses: actions/checkout@v2
5353
- name: Setup Bundler

0 commit comments

Comments
 (0)