auth.yml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/Credentials.swift.gpg \
  49. FirebaseAuth/Tests/Sample/SwiftApiTests/Credentials.swift "$plist_secret"
  50. - name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
  51. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/build.sh Auth iOS)
  52. catalyst:
  53. runs-on: macOS-latest
  54. steps:
  55. - uses: actions/checkout@v2
  56. - name: Setup Bundler
  57. run: scripts/setup_bundler.sh
  58. - name: Setup project and Build for Catalyst
  59. # Only build the unit tests on Catalyst
  60. run: scripts/test_catalyst.sh FirebaseAuth build FirebaseAuth-Unit-unit
  61. quickstart:
  62. env:
  63. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  64. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  65. runs-on: macOS-latest
  66. steps:
  67. - uses: actions/checkout@v2
  68. - name: Setup quickstart
  69. run: scripts/setup_quickstart.sh authentication
  70. - name: Install Secret GoogleService-Info.plist
  71. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-auth.plist.gpg \
  72. quickstart-ios/authentication/GoogleService-Info.plist "$plist_secret"
  73. - name: Install Secret FIREGSignInInfo.h
  74. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  75. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  76. - name: Test objc quickstart
  77. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Authentication)
  78. - name: Test swift quickstart
  79. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Authentication swift)
  80. auth-cron-only:
  81. runs-on: macos-latest
  82. if: github.event_name == 'schedule'
  83. strategy:
  84. matrix:
  85. target: [ios, tvos --skip-tests, macos --skip-tests] # The macos and tvos tests can hang
  86. flags: [
  87. '--use-modular-headers',
  88. '--use-libraries'
  89. ]
  90. needs: pod-lib-lint
  91. steps:
  92. - uses: actions/checkout@v2
  93. - name: Setup Bundler
  94. run: scripts/setup_bundler.sh
  95. - name: PodLibLint Auth Cron
  96. run: |
  97. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAuth.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
  98. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAuth.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}