|
52 | 52 | - 'Gemfile'
|
53 | 53 |
|
54 | 54 | schedule:
|
55 |
| - # Run every day at 11pm (PST) - cron uses UTC times |
56 |
| - - cron: '0 7 * * *' |
| 55 | + # Run every day at 3am (PST) - cron uses UTC times |
| 56 | + # This is set to 3 hours after zip workflow so zip testing can run after. |
| 57 | + - cron: '0 11 * * *' |
57 | 58 |
|
58 | 59 | jobs:
|
59 | 60 | check:
|
@@ -167,6 +168,42 @@ jobs:
|
167 | 168 | --platforms=ios \
|
168 | 169 | --allow-warnings
|
169 | 170 |
|
| 171 | + quickstart_framework: |
| 172 | + env: |
| 173 | + plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} |
| 174 | + signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} |
| 175 | + FRAMEWORK_ZIP: "Firebase-actions-dir.zip" |
| 176 | + SDK: "Firestore" |
| 177 | + runs-on: macOS-latest |
| 178 | + # Don't run on private repo. |
| 179 | + if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk' |
| 180 | + steps: |
| 181 | + - uses: actions/checkout@v2 |
| 182 | + - name: Pull zip from GCS |
| 183 | + run: scripts/pull_zip_gcloud.sh "$plist_secret" "$FRAMEWORK_ZIP" "${HOME}/ios_frameworks" |
| 184 | + - name: Setup quickstart |
| 185 | + run: SAMPLE="$SDK" TARGET="${SDK}Example" NON_FIREBASE_SDKS="SDWebImage FirebaseUI/Auth FirebaseUI/Email FirebaseFirestoreSwift" scripts/setup_quickstart_framework.sh \ |
| 186 | + "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/* \ |
| 187 | + "${HOME}"/ios_frameworks/Firebase/FirebaseFirestore/* \ |
| 188 | + "${HOME}"/ios_frameworks/Firebase/FirebaseAuth/* \ |
| 189 | + "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/* |
| 190 | + - name: Install Secret GoogleService-Info.plist |
| 191 | + run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-firestore.plist.gpg \ |
| 192 | + quickstart-ios/firestore/GoogleService-Info.plist "$plist_secret" |
| 193 | + - name: Install Secret FIREGSignInInfo.h |
| 194 | + run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \ |
| 195 | + quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret" |
| 196 | + - name: Test Quickstart |
| 197 | + run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}") |
| 198 | + - name: Remove data before upload |
| 199 | + if: ${{ failure() }} |
| 200 | + run: scripts/remove_data.sh "${SDK}" |
| 201 | + - uses: actions/upload-artifact@v2 |
| 202 | + if: ${{ failure() }} |
| 203 | + with: |
| 204 | + name: quickstart_artifacts |
| 205 | + path: quickstart-ios/ |
| 206 | + |
170 | 207 | quickstart:
|
171 | 208 | # Don't run on private repo unless it is a PR.
|
172 | 209 | if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
|
|
0 commit comments