auth.yml 4.4 KB

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