|
|
@@ -60,3 +60,45 @@ jobs:
|
|
|
run: scripts/upload_to_gcs.sh "${GITHUB_SHA}" "Fail"
|
|
|
- name: Upload zip file to GCS
|
|
|
run: scripts/upload_to_gcs.sh "${GITHUB_SHA}" "zip_output_dir"
|
|
|
+
|
|
|
+ quickstart_zip_remoteconfig:
|
|
|
+ # Don't run on private repo.
|
|
|
+ if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
|
|
|
+ needs: package
|
|
|
+ env:
|
|
|
+ plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
+ signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
+ FRAMEWORK_ZIP: "Firebase-actions-dir.zip"
|
|
|
+ OUTPUT_DIR: "${HOME}/ios_frameworks/"
|
|
|
+ SDK: "Config"
|
|
|
+ runs-on: macOS-latest
|
|
|
+ steps:
|
|
|
+ - name: Get framework zip file
|
|
|
+ uses: actions/download-artifact@v1
|
|
|
+ with:
|
|
|
+ name: Firebase-actions-dir
|
|
|
+ - uses: actions/checkout@v2
|
|
|
+ - name: Pull zip from GCS
|
|
|
+ run: |
|
|
|
+ unzip "${FRAMEWORK_ZIP}" -d "${OUTPUT_DIR}"
|
|
|
+ find "${OUTPUT_DIR}" -name "*.zip" -maxdepth 3 -exec unzip -d "${OUTPUT_DIR}" {} +
|
|
|
+ - name: Setup Swift Quickstart
|
|
|
+ run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
|
|
|
+ "${HOME}"/ios_frameworks/Firebase/FirebaseRemoteConfig/* \
|
|
|
+ "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
|
|
|
+ - name: Install Secret GoogleService-Info.plist
|
|
|
+ run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-config.plist.gpg \
|
|
|
+ quickstart-ios/config/GoogleService-Info.plist "$plist_secret"
|
|
|
+ - name: Install Secret FIREGSignInInfo.h
|
|
|
+ run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
|
|
|
+ quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
|
|
|
+ - name: Test Swift Quickstart
|
|
|
+ run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
|
|
|
+ - name: Remove data before upload
|
|
|
+ if: ${{ failure() }}
|
|
|
+ run: scripts/remove_data.sh config
|
|
|
+ - uses: actions/upload-artifact@v2
|
|
|
+ if: ${{ failure() }}
|
|
|
+ with:
|
|
|
+ name: quickstart_artifacts
|
|
|
+ path: quickstart-ios/
|