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 10, 2023
1 parent c5cd1aa commit a8e81d5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ 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 +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
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ 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 +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
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" if Gem::Version.new(RUBY_VERSION) > Gem::Version.new("3.0.2")
end

0 comments on commit a8e81d5

Please sign in to comment.