2929 type : string
3030 required : true
3131
32- # Whether to test the legacy version of the quickstart.
33- is_legacy :
34- type : boolean
35- required : true
32+ # The branch to checkout in the quickstart repo.
33+ quickstart_branch :
34+ type : string
35+ required : false
36+ default : ' main'
3637
3738 # The path to the encrypted `GoogleService-Info.plist` file.
3839 plist_src_path :
4445 type : string
4546 required : true
4647
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-
5548 # Whether to run tests or just build. Defaults to true.
5649 run_tests :
5750 type : boolean
6861
6962jobs :
7063 quickstart :
64+ name : quickstart (${{ inputs.product }})
7165 # Run on the main repo's scheduled jobs or pull requests and manual workflow invocations.
7266 if : (github.repository == 'firebase/firebase-ios-sdk' && github.event_name == 'schedule') || contains(fromJSON('["pull_request", "workflow_dispatch"]'), github.event_name)
7367 env :
7468 plist_secret : ${{ secrets.plist_secret }}
75- LEGACY : ${{ inputs.is_legacy && true || '' }}
69+ QUICKSTART_BRANCH : ${{ inputs.quickstart_branch }}
7670 runs-on : macos-15
7771 steps :
7872 - uses : actions/checkout@v4
7973 - uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
74+ - name : Prereqs
75+ run : gem install xcpretty
8076 - name : Xcode
8177 run : sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
8278 - name : Run setup command.
@@ -87,17 +83,16 @@ jobs:
8783 ${{ inputs.plist_src_path }} \
8884 ${{ inputs.plist_dst_path }} \
8985 "$plist_secret"
90- - name : Build ${{ inputs.product }} Quickstart (${{ inputs.quickstart_type }} / ${{ inputs.is_legacy && 'Legacy' || 'Non-Legacy' }})
86+ - name : Build ${{ inputs.product }} Quickstart
9187 uses : nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
9288 with :
9389 timeout_minutes : 15
9490 max_attempts : 3
9591 retry_wait_seconds : 120
9692 command : |
97- scripts/test_quickstart.sh \
93+ SPM=true DIR=${{ inputs.product }} scripts/test_quickstart.sh \
9894 ${{ inputs.product }} \
99- ${{ inputs.run_tests }} \
100- ${{ inputs.quickstart_type }}
95+ ${{ inputs.run_tests }}
10196 # Failure sequence to upload artifact.
10297 - id : lowercase_product
10398 if : failure()
0 commit comments