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 }} catalyst: runs-on: macOS-latest steps: - uses: actions/checkout@v2 - name: Setup Bundler run: scripts/setup_bundler.sh - name: Setup project and Build Catalyst run: scripts/test_catalyst.sh FirebaseMessaging build quickstart: runs-on: macOS-latest steps: - uses: actions/checkout@v2 - name: Setup quickstart run: scripts/setup_quickstart.sh messaging - name: Install Secret GoogleService-Info.plist env: plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-messaging.plist.gpg \ quickstart-ios/messaging/GoogleService-Info.plist "$plist_secret" - name: Install Secret FIREGSignInInfo.h env: signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \ quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret" - name: Test quickstart run: scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Messaging 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