|
60 | 60 | run: scripts/upload_to_gcs.sh "${GITHUB_SHA}" "Fail"
|
61 | 61 | - name: Upload zip file to GCS
|
62 | 62 | run: scripts/upload_to_gcs.sh "${GITHUB_SHA}" "zip_output_dir"
|
| 63 | + |
| 64 | + quickstart_zip_remoteconfig: |
| 65 | + # Don't run on private repo. |
| 66 | + if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk' |
| 67 | + needs: package |
| 68 | + env: |
| 69 | + plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} |
| 70 | + signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} |
| 71 | + FRAMEWORK_ZIP: "Firebase-actions-dir.zip" |
| 72 | + OUTPUT_DIR: "${HOME}/ios_frameworks/" |
| 73 | + SDK: "Config" |
| 74 | + runs-on: macOS-latest |
| 75 | + steps: |
| 76 | + - name: Get framework zip file |
| 77 | + uses: actions/download-artifact@v1 |
| 78 | + with: |
| 79 | + name: Firebase-actions-dir |
| 80 | + - uses: actions/checkout@v2 |
| 81 | + - name: Pull zip from GCS |
| 82 | + run: | |
| 83 | + unzip "${FRAMEWORK_ZIP}" -d "${OUTPUT_DIR}" |
| 84 | + find "${OUTPUT_DIR}" -name "*.zip" -maxdepth 3 -exec unzip -d "${OUTPUT_DIR}" {} + |
| 85 | + - name: Setup Swift Quickstart |
| 86 | + run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \ |
| 87 | + "${HOME}"/ios_frameworks/Firebase/FirebaseRemoteConfig/* \ |
| 88 | + "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/* |
| 89 | + - name: Install Secret GoogleService-Info.plist |
| 90 | + run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-config.plist.gpg \ |
| 91 | + quickstart-ios/config/GoogleService-Info.plist "$plist_secret" |
| 92 | + - name: Install Secret FIREGSignInInfo.h |
| 93 | + run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \ |
| 94 | + quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret" |
| 95 | + - name: Test Swift Quickstart |
| 96 | + run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}") |
| 97 | + - name: Remove data before upload |
| 98 | + if: ${{ failure() }} |
| 99 | + run: scripts/remove_data.sh config |
| 100 | + - uses: actions/upload-artifact@v2 |
| 101 | + if: ${{ failure() }} |
| 102 | + with: |
| 103 | + name: quickstart_artifacts |
| 104 | + path: quickstart-ios/ |
0 commit comments