functions.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: functions
  2. on:
  3. pull_request:
  4. paths:
  5. - 'Functions**'
  6. - '.github/workflows/functions.yml'
  7. - 'Interop/Auth/Public/*.h'
  8. - 'Gemfile'
  9. schedule:
  10. # Run every day at 11pm (PST) - cron uses UTC times
  11. - cron: '0 7 * * *'
  12. jobs:
  13. quickstart:
  14. # Don't run on private repo unless it is a PR.
  15. if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
  16. env:
  17. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  18. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  19. runs-on: macOS-latest
  20. steps:
  21. - uses: actions/checkout@v2
  22. - name: Setup quickstart
  23. run: scripts/setup_quickstart.sh functions
  24. - name: install secret googleservice-info.plist
  25. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-functions.plist.gpg \
  26. quickstart-ios/functions/GoogleService-Info.plist "$plist_secret"
  27. - name: Install Secret FIREGSignInInfo.h
  28. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  29. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  30. - name: Setup custom URL scheme
  31. run: sed -i '' 's/REVERSED_CLIENT_ID/com.googleusercontent.apps.1025801074639-6p6ebi8amuklcjrto20gvpe295smm8u6/' quickstart-ios/functions/FunctionsExample/Info.plist
  32. - name: Test objc quickstart
  33. run: ([ -z $plist_secret ] ||
  34. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions)
  35. - name: Test swift quickstart
  36. run: ([ -z $plist_secret ] ||
  37. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions swift)