-
Notifications
You must be signed in to change notification settings - Fork 342
feat: Implement SDK Size analysis on CI #2612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
e06217e
Refactoring
testableapple 0a817a7
Implement SDK size analysis
testableapple af410ed
Update
testableapple e1a2e1a
Add android bundle option
testableapple 0209df3
Test yaml
testableapple e1dc6bb
Merge branch 'develop' into ci/show-sdk-size
testableapple 67ad81e
Update
testableapple f12c900
Add java
testableapple 4ad4a6e
Andd android cli
testableapple ad6687d
Test
testableapple e397897
Update
testableapple 58f5018
Update
testableapple b5a6553
Merge branch 'develop' into ci/show-sdk-size
testableapple 53af9ea
Test
testableapple 04def92
Connect bot
testableapple 8552c1a
Test
testableapple e4b3d16
Test iOS
testableapple 496d085
Test
testableapple 99d9238
Test all
testableapple f389d17
Move some actions to plugin
testableapple 82d2873
Test
testableapple d435722
Test
testableapple e774ea8
Update SDK names
testableapple f9a4e92
Fix typo
testableapple 69e398e
Update
testableapple e94f90e
Test
testableapple 3a0d373
Update
testableapple 3bc6f84
Update
testableapple 8c406e0
Update
testableapple 03ece67
Update
testableapple 5587cf1
update
testableapple a2a1d3a
Merge branch 'develop' into ci/show-sdk-size
testableapple c71fb4d
Update
testableapple 364b905
Update
testableapple 8e97736
Update
testableapple 289f048
Update actions
testableapple 26ff2b8
Extract RN version
testableapple bfb9939
Test apk size
testableapple 4e94408
Remove test code
testableapple 2655459
Bump plugin version
testableapple 5a47de2
Bump plugin version
testableapple 3a40037
[CI] Add space to SDK size badge
testableapple b3720a3
Update
testableapple fb34441
fix
testableapple 6e1d8f8
Update
testableapple e962ef8
Merge branch 'develop' into ci/show-sdk-size
testableapple 372ed9f
Update
testableapple f684e01
Test
testableapple 817262d
Merge branch 'develop' into ci/show-sdk-size
testableapple 031a468
Update readme
testableapple 41b3304
Test
testableapple d60a9ec
Test
testableapple 05b94b6
Test
testableapple d65c9ee
Test
testableapple 2a098ca
Update
testableapple 1c7caa4
Test again
testableapple 57adb05
Test
testableapple 7f1ad0e
Fix api key
testableapple 3e03734
Test
testableapple 23eece5
Test
testableapple 4d8a884
Test
testableapple c6d4b90
Test
testableapple ec5b953
Fix
testableapple 83b6fc4
Test
testableapple eaec2ab
Test
testableapple e98ee64
Test
testableapple 1359356
Update
testableapple 7acb5b4
Set up a minimum ruby version
testableapple File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: 'Ruby Cache' | ||
description: 'Cache Ruby dependencies' | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.1 | ||
bundler-cache: true | ||
working-directory: examples/SampleApp |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
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: ubuntu-latest | ||
steps: | ||
- name: Connect Bot | ||
uses: webfactory/ssh-agent@v0.7.0 | ||
with: | ||
ssh-private-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }} | ||
|
||
- uses: actions/checkout@v3.1.0 | ||
|
||
- uses: ./.github/actions/ruby-cache | ||
|
||
- 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.APPSTORE_API_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.CI_BOT_GITHUB_TOKEN }} | ||
UPDATE_README: ${{ github.ref == 'refs/heads/main' }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
source 'https://rubygems.org' | ||
|
||
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version | ||
ruby ">= 2.6.10" | ||
# You may use http://rbenv.org to install and use this version | ||
ruby '>= 3.1' | ||
|
||
# Cocoapods 1.15 introduced a bug which break the build. We will remove the upper | ||
# bound in the template on Cocoapods with next React Native release. | ||
gem 'cocoapods', '>= 1.13', '< 1.15' | ||
gem 'activesupport', '>= 6.1.7.5', '< 7.1.0' | ||
gem 'cocoapods', '>= 1.13', '< 1.15' | ||
gem 'fastlane' | ||
gem 'rubocop-performance' | ||
gem 'rubocop-require_tools' | ||
|
||
gem "fastlane" | ||
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile') | ||
eval_gemfile(plugins_path) if File.exist?(plugins_path) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.