Skip to content

feat: Implement SDK Size analysis on CI #40

feat: Implement SDK Size analysis on CI

feat: Implement SDK Size analysis on CI #40

name: SDK Size
on:
pull_request:
workflow_dispatch:
push:
branches:
- develop
- main
env:
HOMEBREW_NO_INSTALL_CLEANUP: 1 # Disable cleanup for homebrew, we don't need it on CI
jobs:
sdk_size:
name: Metrics
runs-on: macos-14
steps:
- name: Connect Bot
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }}
- uses: actions/[email protected]
- uses: ./.github/actions/ruby-cache
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
check-latest: true
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'yarn'
- name: Run SDK Size Metrics
run: bundle exec fastlane show_frameworks_sizes update_readme:$UPDATE_README open_pr:$UPDATE_README
working-directory: examples/SampleApp
timeout-minutes: 60
env:
GITHUB_PR_NUM: ${{ github.event.pull_request.number }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
APPSTORE_API_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
GITHUB_TOKEN: ${{ secrets.CI_BOT_GITHUB_TOKEN }}
UPDATE_README: ${{ github.ref == 'refs/heads/main' }}