Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/common_cocoapods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ on:
# This is useful for additional set up, like starting an emulator or
# downloading test data.
#
# Note, this step has env var set to decrypt plists. Use "$plist_secret"
# in the given command.
#
# Example: `FirebaseFunctions/Backend/start.sh synchronous`
setup_command:
type: string
Expand Down Expand Up @@ -101,6 +104,8 @@ jobs:
run: sed -i "" "s/s.swift_version[[:space:]]*=[[:space:]]*'5.9'/s.swift_version = '6.0'/" ${{ inputs.product }}.podspec
- name: Run setup command, if needed.
if: inputs.setup_command != ''
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
run: ${{ inputs.setup_command }}
- uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
if: contains(join(inputs.platforms), matrix.platform) || matrix.os == 'macos-14'
Expand Down
36 changes: 9 additions & 27 deletions .github/workflows/mlmodeldownloader.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
paths:
- 'FirebaseMLModelDownloader**'
- '.github/workflows/mlmodeldownloader.yml'
- '.github/workflows/common.yml'
- '.github/workflows/common_cocoapods.yml'
- 'Gemfile*'
schedule:
# Run every day at 11pm (PST) - cron uses UTC times
Expand All @@ -27,37 +29,17 @@
product: FirebaseMLModelDownloader
target: FirebaseMLModelDownloader-Unit-unit

pod-lib-lint:
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
strategy:
matrix:
target: [ios, tvos, macos, watchos]
build-env:
- os: macos-14
xcode: Xcode_16.2
- os: macos-15
xcode: Xcode_16.2
runs-on: ${{ matrix.build-env.os }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: Configure test keychain
run: scripts/configure_test_keychain.sh
- name: Install GoogleService-Info.plist
run: |
pod_lib_lint:
uses: ./.github/workflows/common_cocoapods.yml
with:
product: FirebaseMLModelDownloader
setup_command: |
scripts/configure_test_keychain.sh
mkdir FirebaseMLModelDownloader/Tests/Integration/Resources
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/MLModelDownloader/GoogleService-Info.plist.gpg \
FirebaseMLModelDownloader/Tests/Integration/Resources/GoogleService-Info.plist "$plist_secret"
- name: Xcode
run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
- name: Build and test
run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMLModelDownloader.podspec --platforms=${{ matrix.target }})

mlmodeldownloader-cron-only:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
runs-on: macos-15
env:
Expand All @@ -65,7 +47,7 @@
strategy:
matrix:
target: [ios, tvos, macos]
needs: pod-lib-lint
needs: pod_lib_lint
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
Expand Down
Loading