Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/rubyzen-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,18 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Run RubyZen Analysis
- name: Run RubyZen Analysis (sample_project specs)
uses: ./
with:
token: ${{ secrets.GITHUB_TOKEN }}
ruby-version: '3.3'
target-directories: 'sample_project/src'
target-rspec-directory: 'sample_project/spec'

@steliosfran Stelios Frantzeskakis (steliosfran) May 1, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eric Silverberg (@esilverberg) I've already done all that in my PR that I mentioned yesterday: #24

- name: Run RubyZen Analysis (top-level specs)
uses: ./
with:
token: ${{ secrets.GITHUB_TOKEN }}
ruby-version: '3.3'
target-directories: 'src'
target-rspec-directory: 'spec'
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ bundle exec rspec sample_project/spec/

# Run custom lint rules for the target project
bundle exec rspec target_project/spec/rubyzen/

# Run rspec on our custom matchers
bundle exec rspec spec
```

The lint rules are project-agnostic - you can apply any rule set to any target project by specifying the appropriate spec path.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ def build_item(name:, class_name:, file_path:, line: 1)
expect(matcher.failure_message).to include('Violations:')
expect(matcher.failure_message).to include('Stale allowlist entries:')
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require_relative '../spec_helper'

RSpec.describe 'be_true' do
let(:test_item_class) { Struct.new(:name, :class_name, :file_path, :line, keyword_init: true) }
let(:test_item_class) { Struct.new(:name, :class_name, :file_path, :line, keyword_init: true) }

let(:root_path) { File.expand_path('../..', __dir__) }

Expand Down
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# frozen_string_literal: true

require 'rubyzen'
Loading