Skip to content

Commit

Permalink
chore: fix github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
g-arjones committed Jul 10, 2024
1 parent 075ca69 commit 195011f
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Remove vscode gems
run: bundle config set --local without vscode
- name: Install dependencies
run: bundle install
- name: Run rubocop
run: bundle exec rubocop
run: bundle exec rubocop
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Remove vscode gems
run: bundle config set --local without vscode
- name: Install dependencies
run: bundle install
- name: Enable file transport in git
run: git config --global protocol.file.allow always
- name: Run tests
run: bundle exec rake test
env:
Expand Down
4 changes: 3 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
inherit_from: .rubocop_todo.yml

inherit_gem:
rubocop-rock: defaults.yml

Expand Down Expand Up @@ -111,4 +113,4 @@ Style/GlobalStdStream:
Enabled: false

Style/OptionalBooleanParameter:
Enabled: false
Enabled: false
14 changes: 14 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-07-10 18:16:42 UTC using RuboCop version 1.28.2.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 2
# Configuration parameters: Include.
# Include: **/*.gemspec
Gemspec/RubyVersionGlobalsUsage:
Exclude:
- 'autobuild.gemspec'
9 changes: 7 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@ source 'https://rubygems.org'

gemspec

group :lint do
gem 'parallel', '1.24.0'
gem 'rubocop', '1.28.2'
gem 'rubocop-ast', '1.17.0'
gem 'rubocop-rock'
end

group :vscode do
gem 'debase', '>= 0.2.2.beta10'
gem 'pry'
gem 'pry-byebug'
gem 'rubocop', '>= 0.6.0'
gem 'rubocop-rock'
gem 'ruby-debug-ide', '>= 0.6.0'
gem 'solargraph'
end
8 changes: 6 additions & 2 deletions autobuild.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ Gem::Specification.new do |s|
.reject { |f| f.match(%r{^(test|spec|features)/}) }

s.add_runtime_dependency "concurrent-ruby", "~> 1.1"
s.add_runtime_dependency "net-smtp" if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.1.0")
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.1.0")
s.add_runtime_dependency "net-smtp"
end
s.add_runtime_dependency "pastel", "~> 0.7.0"
s.add_runtime_dependency "rake", "~> 13.0"
s.add_runtime_dependency 'tty-cursor', '~> 0.7.0'
Expand All @@ -36,5 +38,7 @@ Gem::Specification.new do |s|
s.add_development_dependency "minitest", "~> 5.0", ">= 5.0"
s.add_development_dependency "simplecov"
s.add_development_dependency "timecop"
s.add_development_dependency "webrick" if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.0.0")
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.0.0")
s.add_development_dependency "webrick"
end
end

0 comments on commit 195011f

Please sign in to comment.