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 11, 2023
1 parent c5cd1aa commit 5a28ea9
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 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

0 comments on commit 5a28ea9

Please sign in to comment.