11name : installations
22
3+ permissions :
4+ contents : read
5+
36on :
47 workflow_dispatch :
58 pull_request :
69 paths :
710 - ' FirebaseInstallations**'
811 - ' .github/workflows/installations.yml'
12+ - ' .github/workflows/common.yml'
13+ - ' .github/workflows/common_cocoapods.yml'
914 - ' Gemfile*'
1015 schedule :
1116 # Run every day at 10pm (PST) - cron uses UTC times
@@ -28,46 +33,18 @@ jobs:
2833 product : FirebaseInstallations
2934 target : FirebaseInstallations-Unit-unit
3035
31- pod-lib-lint :
32- # Don't run on private repo unless it is a PR.
33- if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
34-
35- env :
36- plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
37- strategy :
38- matrix :
39- # TODO: macos tests are blocked by https://github.com/erikdoe/ocmock/pull/532
40- target : [ios, tvos, macos --skip-tests, watchos]
41- build-env :
42- - os : macos-14
43- xcode : Xcode_16.2
44- test-specs : unit,integration
45- - os : macos-15
46- xcode : Xcode_16.3
47- test-specs : unit
48- runs-on : ${{ matrix.build-env.os }}
49- steps :
50- - uses : actions/checkout@v4
51- - uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
52- - name : Setup Bundler
53- run : scripts/setup_bundler.sh
54- - name : Configure test keychain
55- run : scripts/configure_test_keychain.sh
56- - name : Install GoogleService-Info.plist
57- run : |
36+ pod_lib_lint :
37+ uses : ./.github/workflows/common_cocoapods.yml
38+ with :
39+ product : FirebaseInstallations
40+ setup_command : |
41+ scripts/configure_test_keychain.sh
5842 mkdir -p FirebaseInstallations/Source/Tests/Resources
5943 scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Installations/GoogleService-Info.plist.gpg \
6044 FirebaseInstallations/Source/Tests/Resources/GoogleService-Info.plist "$plist_secret"
61- - name : Get boolean for secrets available
62- id : secrets
63- run : echo "::set-output name=val::$([[ -z $plist_secret ]] && echo "0" || echo "1")"
64- - name : Xcode
65- run : sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
66- - name : Build and test
67- run : |
68- export FIS_INTEGRATION_TESTS_REQUIRED=${{ steps.secrets.outputs.val }}
69- scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseInstallations.podspec \
70- --platforms=${{ matrix.target }} --test-specs=${{ matrix.build-env.test-specs }}
45+ export FIS_INTEGRATION_TESTS_REQUIRED=1
46+ secrets :
47+ plist_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
7148
7249 quickstart :
7350 # Don't run on private repo unless it is a PR.
@@ -129,7 +106,7 @@ jobs:
129106 flags : [
130107 ' --use-static-frameworks'
131108 ]
132- needs : pod-lib-lint
109+ needs : pod_lib_lint
133110 steps :
134111 - uses : actions/checkout@v4
135112 - uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
0 commit comments