watchos-sample.yml 1010 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: watchos-sample
  2. on:
  3. pull_request:
  4. paths:
  5. # Sources
  6. - 'FirebaseABTesting/**'
  7. - 'FirebaseDatabase/**'
  8. - 'FirebaseRemoteConfig/**'
  9. - 'FirebaseStorage/**'
  10. # Sample
  11. - 'Example/watchOSSample/**'
  12. # Firebase Podspec
  13. - 'Firebase.podspec'
  14. # This file
  15. - '.github/workflows/watchos-sample.yml'
  16. # Rebuild on Ruby infrastructure changes
  17. - 'Gemfile*'
  18. schedule:
  19. # Run every day at 10pm (PST) - cron uses UTC times
  20. - cron: '0 6 * * *'
  21. jobs:
  22. tv-sample-build-test:
  23. # Don't run on private repo unless it is a PR.
  24. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  25. runs-on: macos-11
  26. steps:
  27. - uses: actions/checkout@v2
  28. - name: Setup Bundler
  29. run: scripts/setup_bundler.sh
  30. - name: Prereqs
  31. run: scripts/install_prereqs.sh WatchOSSample watchOS
  32. - name: Build
  33. run: ([ -z $plist_secret ] || scripts/build.sh WatchOSSample watchOS)