dynamiclinks.yml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 9pm (PST) - cron uses UTC times
  11. - cron: '0 5 * * *'
  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-latest
  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-latest
  27. steps:
  28. - uses: actions/checkout@v2
  29. - name: Xcode 12
  30. run: sudo xcode-select -s /Applications/Xcode_12.app/Contents/Developer
  31. - name: Initialize xcodebuild
  32. run: xcodebuild -list
  33. - name: iOS Unit Tests
  34. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseDynamicLinks iOS spmbuildonly
  35. dynamiclinks-cron-only:
  36. # Don't run on private repo.
  37. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  38. runs-on: macos-latest
  39. strategy:
  40. matrix:
  41. flags: [
  42. '--use-static-frameworks',
  43. '--use-libraries'
  44. ]
  45. needs: pod_lib_lint
  46. steps:
  47. - uses: actions/checkout@v2
  48. - name: Setup Bundler
  49. run: scripts/setup_bundler.sh
  50. - name: PodLibLint Storage Cron
  51. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseDynamicLinks.podspec --platforms=ios ${{ matrix.flags }}
  52. quickstart:
  53. # Don't run on private repo unless it is a PR.
  54. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  55. env:
  56. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  57. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  58. runs-on: macOS-latest
  59. steps:
  60. - uses: actions/checkout@v2
  61. - name: Setup quickstart
  62. run: scripts/setup_quickstart.sh DynamicLinks
  63. - name: Install Secret GoogleService-Info.plist
  64. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-dynamiclinks.plist.gpg \
  65. quickstart-ios/dynamiclinks/GoogleService-Info.plist "$plist_secret"
  66. - name: Update Environment Variable For DynamicLinks
  67. run: |
  68. sed -i '' 's#DYNAMIC_LINK_DOMAIN#https://qpf6m.app.goo.gl#' quickstart-ios/dynamiclinks/DynamicLinksExample/DynamicLinksExample.entitlements
  69. sed -i '' 's#YOUR_DOMAIN_URI_PREFIX";#https://qpf6m.app.goo.gl";#' quickstart-ios/dynamiclinks/DynamicLinksExample/ViewController.m
  70. sed -i '' 's#YOUR_DOMAIN_URI_PREFIX";#https://qpf6m.app.goo.gl";#' quickstart-ios/dynamiclinks/DynamicLinksExampleSwift/ViewController.swift
  71. - name: Install Secret FIREGSignInInfo.h
  72. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  73. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  74. - name: Test objc quickstart
  75. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh DynamicLinks)
  76. - name: Test swift quickstart
  77. if: ${{ always() }}
  78. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh DynamicLinks swift)