auth.yml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. name: auth
  2. on:
  3. pull_request:
  4. paths:
  5. - 'FirebaseAuth**'
  6. - '.github/workflows/auth.yml'
  7. - 'Gemfile'
  8. schedule:
  9. # Run every day at 11pm (PST) - cron uses UTC times
  10. - cron: '0 7 * * *'
  11. jobs:
  12. pod-lib-lint:
  13. runs-on: macOS-latest
  14. strategy:
  15. matrix:
  16. target: [ios, tvos, macos]
  17. steps:
  18. - uses: actions/checkout@v2
  19. - name: Setup Bundler
  20. run: scripts/setup_bundler.sh
  21. - name: Build and test
  22. run: |
  23. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAuth.podspec --platforms=${{ matrix.target }}
  24. integration-tests:
  25. env:
  26. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  27. runs-on: macos-latest
  28. steps:
  29. - uses: actions/checkout@v2
  30. - name: Setup Bundler
  31. run: scripts/setup_bundler.sh
  32. - name: Prereqs
  33. run: scripts/install_prereqs.sh Auth iOS
  34. - name: Install Secrets
  35. run: |
  36. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthCredentials.h.gpg \
  37. FirebaseAuth/Tests/Sample/ApiTests/AuthCredentials.h "$plist_secret"
  38. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/Application.plist.gpg \
  39. FirebaseAuth/Tests/Sample/Sample/Application.plist "$plist_secret"
  40. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/AuthCredentials.h.gpg \
  41. FirebaseAuth/Tests/Sample/Sample/AuthCredentials.h "$plist_secret"
  42. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/GoogleService-Info.plist.gpg \
  43. FirebaseAuth/Tests/Sample/Sample/GoogleService-Info.plist "$plist_secret"
  44. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/GoogleService-Info_multi.plist.gpg \
  45. FirebaseAuth/Tests/Sample/Sample/GoogleService-Info_multi.plist "$plist_secret"
  46. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/Sample.entitlements.gpg \
  47. FirebaseAuth/Tests/Sample/Sample/Sample.entitlements "$plist_secret"
  48. - name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
  49. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/build.sh Auth iOS)
  50. catalyst:
  51. runs-on: macOS-latest
  52. steps:
  53. - uses: actions/checkout@v2
  54. - name: Setup Bundler
  55. run: scripts/setup_bundler.sh
  56. - name: Setup project and Build for Catalyst
  57. # Only build the unit tests on Catalyst
  58. run: scripts/test_catalyst.sh FirebaseAuth build FirebaseAuth-Unit-unit
  59. quickstart:
  60. env:
  61. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  62. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  63. runs-on: macOS-latest
  64. steps:
  65. - uses: actions/checkout@v2
  66. - name: Setup quickstart
  67. run: scripts/setup_quickstart.sh authentication
  68. - name: Install Secret GoogleService-Info.plist
  69. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-auth.plist.gpg \
  70. quickstart-ios/authentication/GoogleService-Info.plist "$plist_secret"
  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 quickstart
  75. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Authentication)
  76. auth-cron-only:
  77. runs-on: macos-latest
  78. if: github.event_name == 'schedule'
  79. strategy:
  80. matrix:
  81. target: [ios, tvos --skip-tests, macos --skip-tests] # The macos and tvos tests can hang
  82. flags: [
  83. '--use-modular-headers',
  84. '--use-libraries'
  85. ]
  86. needs: pod-lib-lint
  87. steps:
  88. - uses: actions/checkout@v2
  89. - name: Setup Bundler
  90. run: scripts/setup_bundler.sh
  91. - name: PodLibLint Auth Cron
  92. run: |
  93. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAuth.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
  94. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAuth.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}