|
11 | 11 | - '.github/workflows/remoteconfig.yml'
|
12 | 12 | - 'Gemfile'
|
13 | 13 | schedule:
|
14 |
| - # Run every day at 11pm (PST) - cron uses UTC times |
15 |
| - - cron: '0 7 * * *' |
| 14 | + # Run every day at 3am (PST) - cron uses UTC times |
| 15 | + # This is set to 3 hours after zip workflow so zip testing can run after. |
| 16 | + - cron: '0 11 * * *' |
16 | 17 |
|
17 | 18 | jobs:
|
18 | 19 |
|
|
62 | 63 | # Only build the unit tests on Catalyst. Test stopped working when GHA moved to Xcode 11.4.1.
|
63 | 64 | run: scripts/test_catalyst.sh FirebaseRemoteConfig build FirebaseRemoteConfig-Unit-unit
|
64 | 65 |
|
| 66 | + quickstart_framework: |
| 67 | + env: |
| 68 | + plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} |
| 69 | + signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} |
| 70 | + FRAMEWORK_ZIP: "Firebase-actions-dir.zip" |
| 71 | + SDK: "Config" |
| 72 | + runs-on: macOS-latest |
| 73 | + # Make sure tests run after the zip workflow finishes. |
| 74 | + if: github.event_name == 'schedule' |
| 75 | + steps: |
| 76 | + - uses: actions/checkout@v2 |
| 77 | + - name: Install gcloud tool |
| 78 | + run: scripts/install_gcloud.sh |
| 79 | + - name: Access GCS bucket |
| 80 | + run: | |
| 81 | + scripts/decrypt_gha_secret.sh scripts/gha-encrypted/firebase-ios-testing.json.gpg firebase-ios-testing.json "$plist_secret" |
| 82 | + gcloud auth activate-service-account --key-file firebase-ios-testing.json |
| 83 | + - name: Pull framework zip files from GCS and unzip |
| 84 | + run: scripts/get_latest_zip_from_gcs.sh "$FRAMEWORK_ZIP" "${HOME}/ios_frameworks" |
| 85 | + - name: Setup quickstart |
| 86 | + run: scripts/setup_quickstart_framework.sh "$SDK" |
| 87 | + - name: Move frameworks to xcode project |
| 88 | + run: | |
| 89 | + mkdir -p quickstart-ios/"${SDK}"/Firebase/ |
| 90 | + mv "${HOME}"/ios_frameworks/Firebase/Firebase.h quickstart-ios/"${SDK}"/Firebase/ |
| 91 | + mv "${HOME}"/ios_frameworks/Firebase/module.modulemap quickstart-ios/"${SDK}"/Firebase/ |
| 92 | + mv "${HOME}"/ios_frameworks/Firebase/FirebaseRemoteConfig/* quickstart-ios/"${SDK}"/Firebase/ |
| 93 | + mv "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/* quickstart-ios/"${SDK}"/Firebase/ |
| 94 | + cd quickstart-ios/"${SDK}" |
| 95 | + ../scripts/add_framework_script.rb "${SDK}" ConfigExample Firebase |
| 96 | + - name: Install Secret GoogleService-Info.plist |
| 97 | + run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-config.plist.gpg \ |
| 98 | + quickstart-ios/config/GoogleService-Info.plist "$plist_secret" |
| 99 | + - name: Install Secret FIREGSignInInfo.h |
| 100 | + run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \ |
| 101 | + quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret" |
| 102 | + - name: Test Quickstart |
| 103 | + run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}") |
| 104 | + - name: Display xcodebuild setup |
| 105 | + if: ${{ failure() }} |
| 106 | + run: | |
| 107 | + cd quickstart-ios/config |
| 108 | + xcodebuild -project ConfigExample.xcodeproj -target "ConfigExample" -showBuildSettings |
| 109 | + - name: Remove data before upload |
| 110 | + if: ${{ failure() }} |
| 111 | + run: | |
| 112 | + rm -f quickstart-ios/config/GoogleSerivce-info.plist |
| 113 | + rm -f quickstart-ios/TestUtils/FIREGSignInInfo.h |
| 114 | + - uses: actions/upload-artifact@v2 |
| 115 | + if: ${{ failure() }} |
| 116 | + with: |
| 117 | + name: quickstart_artifacts |
| 118 | + path: quickstart-ios/ |
| 119 | + |
65 | 120 | quickstart:
|
66 | 121 | env:
|
67 | 122 | plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
0 commit comments