Last active
June 18, 2025 06:28
-
-
Save iregina/6d8dfe556b94df898ef3d49828b63c67 to your computer and use it in GitHub Desktop.
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
| # calculate_metrics.rb | |
| class CalculateMetrics < Roast::Workflow::BaseStep | |
| def call | |
| metrics = analyze_test_file(workflow.file) | |
| # Return data that becomes available to subsequent steps | |
| { | |
| line_count: metrics[:lines], | |
| complexity: metrics[:complexity], | |
| test_coverage: metrics[:coverage] | |
| } | |
| end | |
| private | |
| def analyze_test_file(file) | |
| # Your analysis logic here | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment