Skip to content

Commit

Permalink
run github workflows on ruby 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
g-arjones committed Feb 23, 2023
1 parent c5cd1aa commit b23c238
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 21 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ jobs:

strategy:
matrix:
ruby-version: ["2.7", "2.6", "2.5"]
ruby-version:
- "3.0"
- "2.7"
- "2.6"
- "2.5"

steps:
- uses: actions/checkout@v2
Expand All @@ -19,7 +23,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
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ jobs:

strategy:
matrix:
ruby-version: ["2.7", "2.6", "2.5"]
ruby-version:
- "3.0"
- "2.7"
- "2.6"
- "2.5"

steps:
- uses: actions/checkout@v2
Expand All @@ -19,8 +23,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
7 changes: 5 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ source 'https://rubygems.org'

gemspec

group :lint do
gem 'rubocop', '>= 0.6.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
1 change: 1 addition & 0 deletions autobuild.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ 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"
end
32 changes: 16 additions & 16 deletions test/packages/test_autotools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ def touch_in_srcdir(*dirs, file)
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, "/my/autogen/script",
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any, any).
once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any,
working_directory: @package.builddir).once.globally.ordered
conffile = @package.prepare
Rake::Task[conffile].invoke
end
Expand All @@ -247,8 +247,8 @@ def touch_in_srcdir(*dirs, file)
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, "/my/autogen/script",
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any, any).
once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any,
working_directory: @package.builddir).once.globally.ordered
conffile = @package.prepare
Rake::Task[conffile].invoke
end
Expand All @@ -269,8 +269,8 @@ def touch_in_srcdir(*dirs, file)
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /automake/,
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any, any).
once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any,
working_directory: @package.builddir).once.globally.ordered
conffile = @package.prepare
Rake::Task[conffile].invoke
end
Expand Down Expand Up @@ -315,8 +315,8 @@ def touch_in_srcdir(*dirs, file)
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /automake/,
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any, any).
once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any,
working_directory: @package.builddir).once.globally.ordered
conffile = @package.prepare
Rake::Task[conffile].invoke
end
Expand All @@ -335,8 +335,8 @@ def touch_in_srcdir(*dirs, file)
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /automake/,
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any, any).
once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any,
working_directory: @package.builddir).once.globally.ordered
conffile = @package.prepare
Rake::Task[conffile].invoke
end
Expand All @@ -355,8 +355,8 @@ def touch_in_srcdir(*dirs, file)
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /automake/,
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any, any).
once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any,
working_directory: @package.builddir).once.globally.ordered
conffile = @package.prepare
Rake::Task[conffile].invoke
end
Expand All @@ -375,8 +375,8 @@ def touch_in_srcdir(*dirs, file)
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /automake/,
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any, any).
once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any,
working_directory: @package.builddir).once.globally.ordered
conffile = @package.prepare
Rake::Task[conffile].invoke
end
Expand All @@ -395,8 +395,8 @@ def touch_in_srcdir(*dirs, file)
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /autoheader/,
working_directory: @package.srcdir).once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any, any).
once.globally.ordered
@package.should_receive(:run).with(any, /configure/, any,
working_directory: @package.builddir).once.globally.ordered
conffile = @package.prepare
Rake::Task[conffile].invoke
end
Expand Down

0 comments on commit b23c238

Please sign in to comment.