Skip to content

Commit

Permalink
Cleanups.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomthom committed Jan 3, 2024
1 parent 6b441bf commit 882aac1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 24 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: RuboCop

on:
Expand All @@ -18,25 +11,21 @@ permissions:
contents: read

jobs:
test:
analysis:

runs-on: ubuntu-latest
# runs-on: macos-latest
strategy:
matrix:
# ruby-version: ['2.7', '3.0', '3.2']
ruby-version: ['2.7', '3.2']

steps:
- uses: actions/checkout@v3
- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
uses: ruby/setup-ruby@v1
# uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- run: bundle exec rubocop -V
- name: RuboCop version information
run: bundle exec rubocop -V
- name: Run RuboCop
run: bundle exec rubocop --debug
run: bundle exec rubocop
24 changes: 15 additions & 9 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
source 'https://rubygems.org'

# group :development do
# gem 'colorize', '~> 0.8.1'
# gem 'minitest', '5.4.3'
# gem 'minitest-reporters-json_reporter'
# gem 'rubyzip', '~> 1.2'
# gem 'sketchup-api-stubs'
# gem 'skippy', '~> 0.5.1.a'
# gem 'solargraph'
# end
# Even if you configure Bundler to install only one group it will fail if any
# of the unused groups have dependencies that cannot be resolved.
# On Ruby 3.2 the Minitest 5.4.3 will fail, so applying this kludge to work
# around that until Minitest is updated.
CI_BUILD = ENV['ci']

group :development do
gem 'colorize', '~> 0.8.1'
gem 'minitest', '5.4.3'
gem 'minitest-reporters-json_reporter'
gem 'rubyzip', '~> 1.2'
gem 'sketchup-api-stubs'
gem 'skippy', '~> 0.5.1.a'
gem 'solargraph'
end unless CI_BUILD

group :analytics do
gem 'rubocop', '>= 0.82', '< 2.0'
Expand Down

0 comments on commit 882aac1

Please sign in to comment.