Skip to content

[CI] Show sdk size update on PR #1

[CI] Show sdk size update on PR

[CI] Show sdk size update on PR #1

name: Metrics
on:
pull_request:
types:
- opened
- ready_for_review
workflow_dispatch:
push:
branches:
- develop
env:
HOMEBREW_NO_INSTALL_CLEANUP: 1 # Disable cleanup for homebrew, we don't need it on CI
jobs:
sdk_size:
name: SDK Size
runs-on: macos-14
env:
GITHUB_TOKEN: '${{ secrets.CI_BOT_GITHUB_TOKEN }}'
steps:
- name: Install Bot SSH Key
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }}
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }}
- uses: actions/[email protected]
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }}
- uses: ./.github/actions/bootstrap
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }}
- name: Run SDK Size Metrics
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }}
run: bundle exec fastlane show_frameworks_sizes
timeout-minutes: 30
env:
GITHUB_PR_NUM: ${{ github.event.pull_request.number }}
EVENT_NAME: ${{ github.event_name }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
APPSTORE_API_KEY: ${{ secrets.APPSTORE_API_KEY }}