dynamiclinks.yml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 1am (PST) - cron uses UTC times
  11. - cron: '0 9 * * *'
  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. - uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
  30. with:
  31. cache_key: ${{ matrix.os }}
  32. - name: Initialize xcodebuild
  33. run: scripts/setup_spm_tests.sh
  34. - name: iOS Unit Tests
  35. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseDynamicLinks iOS spmbuildonly
  36. dynamiclinks-cron-only:
  37. # Don't run on private repo.
  38. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  39. runs-on: macos-11
  40. strategy:
  41. matrix:
  42. flags: [
  43. '--use-static-frameworks'
  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-11
  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: Test objc quickstart
  72. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh DynamicLinks true)
  73. - name: Test swift quickstart
  74. if: ${{ always() }}
  75. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh DynamicLinks true swift)