2929 type : string
3030 required : true
3131
32- # The branch to checkout in the quickstart repo.
33- quickstart_branch :
34- type : string
35- required : false
36- default : ' main'
32+ # Whether to test the legacy version of the quickstart.
33+ is_legacy :
34+ type : boolean
35+ required : true
3736
3837 # The path to the encrypted `GoogleService-Info.plist` file.
3938 plist_src_path :
4544 type : string
4645 required : true
4746
47+ # The type of quickstart to test.
48+ #
49+ # Options: [swift, objc]
50+ quickstart_type :
51+ type : string
52+ required : false
53+ default : objc
54+
4855 # Whether to run tests or just build. Defaults to true.
4956 run_tests :
5057 type : boolean
6168
6269jobs :
6370 quickstart :
64- name : quickstart (${{ inputs.product }})
6571 # Run on the main repo's scheduled jobs or pull requests and manual workflow invocations.
6672 if : (github.repository == 'firebase/firebase-ios-sdk' && github.event_name == 'schedule') || contains(fromJSON('["pull_request", "workflow_dispatch"]'), github.event_name)
6773 env :
6874 plist_secret : ${{ secrets.plist_secret }}
69- QUICKSTART_BRANCH : ${{ inputs.quickstart_branch }}
75+ LEGACY : ${{ inputs.is_legacy && true || '' }}
7076 runs-on : macos-15
7177 steps :
7278 - uses : actions/checkout@v4
7379 - uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
74- - name : Prereqs
75- run : gem install xcpretty
7680 - name : Xcode
7781 run : sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
7882 - name : Run setup command.
@@ -83,16 +87,17 @@ jobs:
8387 ${{ inputs.plist_src_path }} \
8488 ${{ inputs.plist_dst_path }} \
8589 "$plist_secret"
86- - name : Build ${{ inputs.product }} Quickstart
90+ - name : Build ${{ inputs.product }} Quickstart (${{ inputs.quickstart_type }} / ${{ inputs.is_legacy && 'Legacy' || 'Non-Legacy' }})
8791 uses : nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
8892 with :
8993 timeout_minutes : 15
9094 max_attempts : 3
9195 retry_wait_seconds : 120
9296 command : |
93- SPM=true DIR=${{ inputs.product }} scripts/test_quickstart.sh \
97+ scripts/test_quickstart.sh \
9498 ${{ inputs.product }} \
95- ${{ inputs.run_tests }}
99+ ${{ inputs.run_tests }} \
100+ ${{ inputs.quickstart_type }}
96101 # Failure sequence to upload artifact.
97102 - id : lowercase_product
98103 if : failure()
0 commit comments