dynamiclinks.yml 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. name: dynamiclinks
  2. on:
  3. pull_request:
  4. paths:
  5. - 'FirebaseDynamicLinks**'
  6. - '.github/workflows/dynamiclinks.yml'
  7. - 'Interop/Analytics/Public/*.h'
  8. - 'Gemfile*'
  9. schedule:
  10. # Run every day at 3am (PST) - cron uses UTC times
  11. - cron: '0 11 * * *'
  12. jobs:
  13. pod_lib_lint:
  14. # Don't run on private repo unless it is a PR.
  15. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  16. runs-on: macos-11
  17. steps:
  18. - uses: actions/checkout@v2
  19. - name: Setup Bundler
  20. run: scripts/setup_bundler.sh
  21. - name: FirebaseDynamicLinks
  22. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseDynamicLinks.podspec
  23. spm:
  24. # Don't run on private repo unless it is a PR.
  25. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  26. runs-on: macos-11
  27. steps:
  28. - uses: actions/checkout@v2
  29. - name: Initialize xcodebuild
  30. run: scripts/setup_spm_tests.sh
  31. - name: iOS Unit Tests
  32. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseDynamicLinks iOS spmbuildonly
  33. dynamiclinks-cron-only:
  34. # Don't run on private repo.
  35. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  36. runs-on: macos-11
  37. strategy:
  38. matrix:
  39. flags: [
  40. '--use-static-frameworks',
  41. '--use-libraries'
  42. ]
  43. needs: pod_lib_lint
  44. steps:
  45. - uses: actions/checkout@v2
  46. - name: Setup Bundler
  47. run: scripts/setup_bundler.sh
  48. - name: PodLibLint Storage Cron
  49. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseDynamicLinks.podspec --platforms=ios ${{ matrix.flags }}
  50. quickstart:
  51. # Don't run on private repo unless it is a PR.
  52. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  53. env:
  54. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  55. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  56. runs-on: macos-11
  57. steps:
  58. - uses: actions/checkout@v2
  59. - name: Setup quickstart
  60. run: scripts/setup_quickstart.sh DynamicLinks
  61. - name: Install Secret GoogleService-Info.plist
  62. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-dynamiclinks.plist.gpg \
  63. quickstart-ios/dynamiclinks/GoogleService-Info.plist "$plist_secret"
  64. - name: Update Environment Variable For DynamicLinks
  65. run: |
  66. sed -i '' 's#DYNAMIC_LINK_DOMAIN#https://qpf6m.app.goo.gl#' quickstart-ios/dynamiclinks/DynamicLinksExample/DynamicLinksExample.entitlements
  67. sed -i '' 's#YOUR_DOMAIN_URI_PREFIX";#https://qpf6m.app.goo.gl";#' quickstart-ios/dynamiclinks/DynamicLinksExample/ViewController.m
  68. sed -i '' 's#YOUR_DOMAIN_URI_PREFIX";#https://qpf6m.app.goo.gl";#' quickstart-ios/dynamiclinks/DynamicLinksExampleSwift/ViewController.swift
  69. - name: Test objc quickstart
  70. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh DynamicLinks true)
  71. - name: Test swift quickstart
  72. if: ${{ always() }}
  73. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh DynamicLinks true swift)
  74. podspec-presubmit:
  75. # Don't run on private repo unless it is a PR.
  76. if: github.repository == 'Firebase/firebase-ios-sdk' && github.event.pull_request.merged != true && github.event.action != 'closed'
  77. runs-on: macos-11
  78. steps:
  79. - uses: actions/checkout@v2
  80. - name: Setup Bundler
  81. run: scripts/setup_bundler.sh
  82. - name: Build and test
  83. run: scripts/third_party/travis/retry.sh pod spec lint FirebaseDynamicLinks.podspec --skip-tests --sources='https://github.com/firebase/SpecsTesting','https://github.com/firebase/SpecsDev.git','https://github.com/firebase/SpecsStaging.git','https://cdn.cocoapods.org/'