Skip to content

Add RuboCop linting and newline enforcement #6

Add RuboCop linting and newline enforcement

Add RuboCop linting and newline enforcement #6

Workflow file for this run

name: Lint
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0.6'
bundler-cache: true
- name: Run RuboCop
run: bundle exec rubocop
- name: Check for files missing newlines
run: bundle exec rake check_newlines