Skip to content

Commit

Permalink
Add github action for Messaging (firebase#4970)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlotteliang authored Feb 26, 2020
1 parent f9a0ee2 commit 1fb6a77
Show file tree
Hide file tree
Showing 28 changed files with 80 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- cron: '0 7 * * *'

jobs:
pod_lib_lint:
pod-lib-lint:
runs-on: macOS-latest

strategy:
Expand All @@ -34,7 +34,7 @@ jobs:
# Tests are skipped since the Swift tests need modules.
'--skip-tests --use-libraries'
]
needs: pod_lib_lint
needs: pod-lib-lint
steps:
- uses: actions/checkout@v2
- name: Setup Bundler
Expand Down
76 changes: 76 additions & 0 deletions .github/workflows/messaging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: messaging

on:
pull_request:
paths:
- 'Firebase/Messaging/**'

#Podspec
- 'FirebaseMessaging.podspec'

- '.github/workflows/messaging.yml'
schedule:
# Run every day at 11pm (PST) - cron uses UTC times
- cron: '0 7 * * *'

jobs:
pod-lib-lint:
runs-on: macOS-latest

strategy:
matrix:
target: [ios, tvos, macos]
steps:
- uses: actions/checkout@v2
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: Build and test
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMessaging.podspec --platforms=${{ matrix.target }}

pod-lib-lint-watchos:
runs-on: macOS-latest

steps:
- uses: actions/checkout@v2
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: Build and test
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMessaging.podspec --skip-tests --platforms=watchos


messaging-cron-only:
runs-on: macos-latest
if: github.event_name == 'schedule'
strategy:
matrix:
target: [ios, tvos, macos]
flags: [
'--use-modular-headers',
'--skip-tests --use-libraries'
]
needs: pod-lib-lint
steps:
- uses: actions/checkout@v2
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: PodLibLint Messaging Cron
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMessaging.podspec --platforms=${{ matrix.target }}

messaging-watchos-cron-only:
runs-on: macos-latest
if: github.event_name == 'schedule'
strategy:
matrix:
flags: [
'--skip-tests --use-modular-headers',
'--skip-tests --use-libraries'
]
needs: pod-lib-lint-watchos
steps:
- uses: actions/checkout@v2
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: PodLibLint Messaging Cron
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMessaging.podspec --platforms=watchos


4 changes: 2 additions & 2 deletions .github/workflows/storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
run: scripts/third_party/travis/retry.sh scripts/build.sh Storage all

pod_lib_lint:
pod-lib-lint:
runs-on: macOS-latest

strategy:
Expand All @@ -47,7 +47,7 @@ jobs:
'--skip-tests --use-modular-headers',
'--skip-tests --use-libraries'
]
needs: pod_lib_lint
needs: pod-lib-lint
steps:
- uses: actions/checkout@v2
- name: Setup Bundler
Expand Down
File renamed without changes.

0 comments on commit 1fb6a77

Please sign in to comment.