Skip to content

Instantly share code, notes, and snippets.

@iregina
Last active June 18, 2025 06:28
Show Gist options
  • Select an option

  • Save iregina/6d8dfe556b94df898ef3d49828b63c67 to your computer and use it in GitHub Desktop.

Select an option

Save iregina/6d8dfe556b94df898ef3d49828b63c67 to your computer and use it in GitHub Desktop.
# 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