|
43 | 43 | - name: PodLibLint Storage Cron
|
44 | 44 | run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseDynamicLinks.podspec --platforms=ios ${{ matrix.flags }}
|
45 | 45 |
|
| 46 | + quickstart_framework: |
| 47 | + env: |
| 48 | + plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} |
| 49 | + signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} |
| 50 | + FRAMEWORK_ZIP: "Firebase-actions-dir.zip" |
| 51 | + SDK: "DynamicLinks" |
| 52 | + runs-on: macOS-latest |
| 53 | + # Make sure tests run after the zip workflow finishes. |
| 54 | + if: github.event_name == 'schedule' |
| 55 | + steps: |
| 56 | + - uses: actions/checkout@v2 |
| 57 | + - name: Pull zip from GCS |
| 58 | + run: scripts/pull_zip_gcloud.sh "$plist_secret" "$FRAMEWORK_ZIP" "${HOME}/ios_frameworks" |
| 59 | + - name: Setup quickstart |
| 60 | + run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \ |
| 61 | + "${HOME}"/ios_frameworks/Firebase/FirebaseDynamicLinks/* \ |
| 62 | + "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/* |
| 63 | + - name: Update Environment Variable For DynamicLinks |
| 64 | + run: | |
| 65 | + sed -i '' 's#DYNAMIC_LINK_DOMAIN#https://qpf6m.app.goo.gl#' quickstart-ios/dynamiclinks/DynamicLinksExample/DynamicLinksExample.entitlements |
| 66 | + sed -i '' 's#YOUR_DOMAIN_URI_PREFIX";#https://qpf6m.app.goo.gl";#' quickstart-ios/dynamiclinks/DynamicLinksExample/ViewController.m |
| 67 | + sed -i '' 's#YOUR_DOMAIN_URI_PREFIX";#https://qpf6m.app.goo.gl";#' quickstart-ios/dynamiclinks/DynamicLinksExampleSwift/ViewController.swift |
| 68 | + - name: Install Secret GoogleService-Info.plist |
| 69 | + run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-dynamiclinks.plist.gpg \ |
| 70 | + quickstart-ios/dynamiclinks/GoogleService-Info.plist "$plist_secret" |
| 71 | + - name: Install Secret FIREGSignInInfo.h |
| 72 | + run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \ |
| 73 | + quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret" |
| 74 | + - name: Test Quickstart |
| 75 | + run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}") |
| 76 | + - name: Remove data before upload |
| 77 | + if: ${{ failure() }} |
| 78 | + run: scripts/remove_data.sh "${SDK}" |
| 79 | + - uses: actions/upload-artifact@v2 |
| 80 | + if: ${{ failure() }} |
| 81 | + with: |
| 82 | + name: quickstart_artifacts |
| 83 | + path: quickstart-ios/ |
| 84 | + |
46 | 85 | quickstart:
|
47 | 86 | # Don't run on private repo unless it is a PR.
|
48 | 87 | if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
|
|
0 commit comments