|
8 | 8 | - '.github/workflows/auth.yml'
|
9 | 9 | - 'Gemfile'
|
10 | 10 | schedule:
|
11 |
| - # Run every day at 11pm (PST) - cron uses UTC times |
12 |
| - - cron: '0 7 * * *' |
| 11 | + # Run every day at 3am (PST) - cron uses UTC times |
| 12 | + # This is set to 3 hours after zip workflow so zip testing can run after. |
| 13 | + - cron: '0 11 * * *' |
13 | 14 |
|
14 | 15 | jobs:
|
15 | 16 |
|
|
76 | 77 | # Only build the unit tests on Catalyst
|
77 | 78 | run: scripts/test_catalyst.sh FirebaseAuth build FirebaseAuth-Unit-unit
|
78 | 79 |
|
| 80 | + quickstart_framework: |
| 81 | + env: |
| 82 | + plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} |
| 83 | + signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} |
| 84 | + FRAMEWORK_ZIP: "Firebase-actions-dir.zip" |
| 85 | + SDK: "Authentication" |
| 86 | + runs-on: macOS-latest |
| 87 | + # Don't run on private repo. |
| 88 | + if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk' |
| 89 | + steps: |
| 90 | + - uses: actions/checkout@v2 |
| 91 | + - name: Pull zip from GCS |
| 92 | + run: scripts/pull_zip_gcloud.sh "$plist_secret" "$FRAMEWORK_ZIP" "${HOME}/ios_frameworks" |
| 93 | + - name: Setup Swift Quickstart |
| 94 | + run: SAMPLE="$SDK" TARGET="${SDK}Example" NON_FIREBASE_SDKS="FBSDKLoginKit FBSDKCoreKit" scripts/setup_quickstart_framework.sh \ |
| 95 | + "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/* \ |
| 96 | + "${HOME}"/ios_frameworks/Firebase/FirebaseDynamicLinks/* \ |
| 97 | + "${HOME}"/ios_frameworks/Firebase/GoogleSignIn/* \ |
| 98 | + "${HOME}"/ios_frameworks/Firebase/FirebaseAuth/* \ |
| 99 | + "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/* |
| 100 | + - name: Install Secret GoogleService-Info.plist |
| 101 | + run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-auth.plist.gpg \ |
| 102 | + quickstart-ios/authentication/GoogleService-Info.plist "$plist_secret" |
| 103 | + - name: Install Secret FIREGSignInInfo.h |
| 104 | + run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \ |
| 105 | + quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret" |
| 106 | + - name: Test Swift Quickstart |
| 107 | + run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}") |
| 108 | + - name: Remove data before upload |
| 109 | + if: ${{ failure() }} |
| 110 | + run: scripts/remove_data.sh "${SDK}" |
| 111 | + - uses: actions/upload-artifact@v2 |
| 112 | + if: ${{ failure() }} |
| 113 | + with: |
| 114 | + name: quickstart_artifacts |
| 115 | + path: quickstart-ios/ |
| 116 | + |
79 | 117 | quickstart:
|
80 | 118 | # Don't run on private repo unless it is a PR.
|
81 | 119 | if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
|
|
0 commit comments