@@ -24,24 +24,23 @@ concurrency:
2424 cancel-in-progress : true
2525
2626jobs :
27- # spm:
28- # uses: ./.github/workflows/common.yml
29- # with:
30- # target: FirebaseStorageUnit
27+ spm :
28+ uses : ./.github/workflows/common.yml
29+ with :
30+ target : FirebaseStorageUnit
3131
32- # catalyst:
33- # uses: ./.github/workflows/common_catalyst.yml
34- # with:
35- # product: FirebaseStorage
36- # target: FirebaseStorage-Unit-unit
32+ catalyst :
33+ uses : ./.github/workflows/common_catalyst.yml
34+ with :
35+ product : FirebaseStorage
36+ target : FirebaseStorage-Unit-unit
3737
3838 storage-integration-tests :
3939 # Don't run on private repo unless it is a PR.
4040 if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
4141 strategy :
4242 matrix :
43- # language: [Swift, ObjC]
44- language : [ObjC]
43+ language : [Swift, ObjC]
4544 include :
4645 - os : macos-15
4746 xcode : Xcode_16.4
@@ -74,96 +73,94 @@ jobs:
7473 with :
7574 timeout_minutes : 120
7675 max_attempts : 3
77- # retry_wait_seconds: 120
78- retry_wait_seconds : 1
79- # command: ([ -z $plist_secret ] || scripts/build.sh Storage${{ matrix.language }} all)
80- command : exit 1
76+ retry_wait_seconds : 120
77+ command : ([ -z $plist_secret ] || scripts/build.sh Storage${{ matrix.language }} all)
8178
82- # quickstart:
83- # # Don't run on private repo unless it is a PR.
84- # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
85- # # TODO: See #12399 and restore Objective-C testing for Xcode 15 if GHA is fixed.
86- # strategy:
87- # matrix:
88- # include:
89- # #- os: macos-13
90- # # xcode: Xcode_14.2 # TODO: the legacy ObjC quickstart doesn't build with Xcode 15.
91- # - swift: swift
92- # os: macos-15
93- # xcode: Xcode_16.4
94- # env:
95- # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
96- # signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
97- # LEGACY: true
98- # runs-on: ${{ matrix.os }}
99- # steps:
100- # - uses: actions/checkout@v4
101- # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
102- # - name: Setup quickstart
103- # run: scripts/setup_quickstart.sh storage
104- # - name: Install Secret GoogleService-Info.plist
105- # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-storage.plist.gpg \
106- # quickstart-ios/storage/GoogleService-Info.plist "$plist_secret"
107- # - name: Xcode
108- # run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
109- # - name: Test quickstart
110- # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Storage false ${{ matrix.swift }})
79+ quickstart :
80+ # Don't run on private repo unless it is a PR.
81+ if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
82+ # TODO: See #12399 and restore Objective-C testing for Xcode 15 if GHA is fixed.
83+ strategy :
84+ matrix :
85+ include :
86+ # - os: macos-13
87+ # xcode: Xcode_14.2 # TODO: the legacy ObjC quickstart doesn't build with Xcode 15.
88+ - swift : swift
89+ os : macos-15
90+ xcode : Xcode_16.4
91+ env :
92+ plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
93+ signin_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
94+ LEGACY : true
95+ runs-on : ${{ matrix.os }}
96+ steps :
97+ - uses : actions/checkout@v4
98+ - uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
99+ - name : Setup quickstart
100+ run : scripts/setup_quickstart.sh storage
101+ - name : Install Secret GoogleService-Info.plist
102+ run : scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-storage.plist.gpg \
103+ quickstart-ios/storage/GoogleService-Info.plist "$plist_secret"
104+ - name : Xcode
105+ run : sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
106+ - name : Test quickstart
107+ run : ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Storage false ${{ matrix.swift }})
111108
112- # quickstart-ftl-cron-only:
113- # # Don't run on private repo.
114- # if: github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule'
115- # env:
116- # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
117- # signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
118- # LEGACY: true
119- # runs-on: macos-15
120- # steps:
121- # - uses: actions/checkout@v4
122- # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
123- # - uses: actions/setup-python@v5
124- # with:
125- # python-version: '3.11'
126- # - name: Setup quickstart
127- # run: scripts/setup_quickstart.sh storage
128- # - name: Install Secret GoogleService-Info.plist
129- # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-storage.plist.gpg \
130- # quickstart-ios/storage/GoogleService-Info.plist "$plist_secret"
131- # # - name: Build objc quickstart
132- # # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Storage)
133- # - name: Build swift quickstart
134- # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Storage swift)
135- # - id: ftl_test
136- # uses: FirebaseExtended/github-actions/[email protected] 137- # with:
138- # credentials_json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIALS }}
139- # testapp_dir: quickstart-ios/build-for-testing
140- # test_type: "xctest"
109+ quickstart-ftl-cron-only :
110+ # Don't run on private repo.
111+ if : github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule'
112+ env :
113+ plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
114+ signin_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
115+ LEGACY : true
116+ runs-on : macos-15
117+ steps :
118+ - uses : actions/checkout@v4
119+ - uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
120+ - uses : actions/setup-python@v5
121+ with :
122+ python-version : ' 3.11'
123+ - name : Setup quickstart
124+ run : scripts/setup_quickstart.sh storage
125+ - name : Install Secret GoogleService-Info.plist
126+ run : scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-storage.plist.gpg \
127+ quickstart-ios/storage/GoogleService-Info.plist "$plist_secret"
128+ # - name: Build objc quickstart
129+ # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Storage)
130+ - name : Build swift quickstart
131+ run : ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Storage swift)
132+ - id : ftl_test
133+ uses :
FirebaseExtended/github-actions/[email protected] 134+ with :
135+ credentials_json : ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIALS }}
136+ testapp_dir : quickstart-ios/build-for-testing
137+ test_type : " xctest"
141138
142- # pod_lib_lint:
143- # uses: ./.github/workflows/common_cocoapods.yml
144- # with:
145- # product: FirebaseStorage
146- # test_specs: unit
139+ pod_lib_lint :
140+ uses : ./.github/workflows/common_cocoapods.yml
141+ with :
142+ product : FirebaseStorage
143+ test_specs : unit
147144
148- # storage-cron-only:
149- # # Don't run on private repo.
150- # if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
151- # strategy:
152- # matrix:
153- # target: [ios, tvos, macos, watchos]
154- # build-env:
155- # - os: macos-14
156- # xcode: Xcode_16.2
157- # - os: macos-15
158- # xcode: Xcode_16.4
159- # runs-on: ${{ matrix.build-env.os }}
160- # needs: pod_lib_lint
161- # steps:
162- # - uses: actions/checkout@v4
163- # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
164- # - name: Setup Bundler
165- # run: scripts/setup_bundler.sh
166- # - name: Xcode
167- # run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
168- # - name: PodLibLint Storage Cron
169- # run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorage.podspec --platforms=${{ matrix.target }} --use-static-frameworks --skip-tests
145+ storage-cron-only :
146+ # Don't run on private repo.
147+ if : github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
148+ strategy :
149+ matrix :
150+ target : [ios, tvos, macos, watchos]
151+ build-env :
152+ - os : macos-14
153+ xcode : Xcode_16.2
154+ - os : macos-15
155+ xcode : Xcode_16.4
156+ runs-on : ${{ matrix.build-env.os }}
157+ needs : pod_lib_lint
158+ steps :
159+ - uses : actions/checkout@v4
160+ - uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
161+ - name : Setup Bundler
162+ run : scripts/setup_bundler.sh
163+ - name : Xcode
164+ run : sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
165+ - name : PodLibLint Storage Cron
166+ run : scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorage.podspec --platforms=${{ matrix.target }} --use-static-frameworks --skip-tests
0 commit comments