diff --git a/.github/workflows/messaging.yml b/.github/workflows/messaging.yml index f1ab4cb2f1f..596fcb80bf9 100644 --- a/.github/workflows/messaging.yml +++ b/.github/workflows/messaging.yml @@ -93,30 +93,25 @@ jobs: plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} quickstart-ftl-cron-only: - # Don't run on private repo. if: github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule' env: plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} runs-on: macos-15 steps: - uses: actions/checkout@v4 - - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1 - uses: actions/setup-python@v5 with: python-version: '3.11' - name: Xcode run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer - name: Setup quickstart - run: scripts/setup_quickstart.sh messaging + run: scripts/setup_quickstart_spm.sh messaging - name: Install Secret GoogleService-Info.plist run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-messaging.plist.gpg \ quickstart-ios/messaging/GoogleService-Info.plist "$plist_secret" - - name: Build objc quickstart + - name: Build quickstart run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Messaging) - - name: Build swift quickstart - run: ([ -z $plist_secret ] || - scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Messaging swift) - id: ftl_test uses: FirebaseExtended/github-actions/firebase-test-lab@v1.4 with: diff --git a/scripts/test_quickstart_ftl.sh b/scripts/test_quickstart_ftl.sh index 76148af2c5c..df91ca616b2 100755 --- a/scripts/test_quickstart_ftl.sh +++ b/scripts/test_quickstart_ftl.sh @@ -29,10 +29,11 @@ source scripts/check_secrets.sh if check_secrets; then cd quickstart-ios + DIR=$(echo "$sample" | tr '[:upper:]' '[:lower:]') if [ "$language" = "swift" ]; then - have_secrets=true SAMPLE="$sample" SWIFT_SUFFIX="Swift" ./scripts/build-for-testing.sh + have_secrets=true SAMPLE="$sample" SPM=true SWIFT_SUFFIX="Swift" DIR="$DIR" ./scripts/build-for-testing.sh else - have_secrets=true SAMPLE="$sample" ./scripts/build-for-testing.sh + have_secrets=true SAMPLE="$sample" SPM=true DIR="$DIR" ./scripts/build-for-testing.sh fi fi