danger-compose_compiler_metrics
A danger plugin for reporting compose compiler metrics
Installation
gem install danger-compose_compiler_metricsUsage
Reporting difference of compose compiler metrics
Dir.glob('**/compose_compiler_metrics').each do |report_dir|
next if report_dir.include?("vendor/bundle")
compose_compiler_metrics.report_difference(report_dir, "#{report_dir}_baseline")
endI recommend a use case that compare the metrics report in the feature branch with the metrics report in the main branch. Following is example of implementation using Github Actions.
tomorrowkey/danger-compose_compiler_metrics-example#1
Reporting compose compiler metrics
Dir.glob('**/compose_compiler_metrics').each do |report_dir|
next if report_dir.include?("vendor/bundle")
compose_compiler_metrics.report(report_dir)
endDevelopment
- Clone this repo
- Run
bundle installto setup dependencies. - Run
bundle exec rake specto run the tests. - Use
bundle exec guardto automatically have tests run as you make changes. - Make your changes.