Skip to content

fix: Resolve remaining RuboCop offenses #13

fix: Resolve remaining RuboCop offenses

fix: Resolve remaining RuboCop offenses #13

Workflow file for this run

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