fix: Resolve remaining RuboCop offenses #13
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
| name: Ruby CI | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| ruby-version: ['3.4.2'] # Ensure this matches target Ruby version for the project | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby-version }} | |
| bundler-cache: true # Runs bundle install and caches gems | |
| - name: Lint with RuboCop | |
| run: bundle exec rubocop | |
| - name: Run RSpec tests | |
| run: bundle exec rspec | |
| - name: Upload coverage to Coveralls | |
| if: success() # Only run if tests succeed | |
| uses: coverallsapp/github-action@v2 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| # Default LCOV file path is ./coverage/lcov.info which should be generated | |
| # by simplecov-lcov with report_with_single_file = true |