auth.yml 4.0 KB

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