Files
firebase-ios-sdk/.github/workflows/messaging.yml
T

77 lines
2.0 KiB
YAML

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