Skip to content

Commit a8e81d5

Browse files
committed
run github workflows on ruby 3.0
1 parent c5cd1aa commit a8e81d5

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

.github/workflows/lint.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
ruby-version: ["2.7", "2.6", "2.5"]
11+
ruby-version: ["3.0", "2.7", "2.6", "2.5"]
1212

1313
steps:
1414
- uses: actions/checkout@v2
@@ -19,7 +19,9 @@ jobs:
1919
uses: ruby/setup-ruby@v1
2020
with:
2121
ruby-version: ${{ matrix.ruby-version }}
22+
- name: Remove vscode gems
23+
run: bundle config set --local without vscode
2224
- name: Install dependencies
2325
run: bundle install
2426
- name: Run rubocop
25-
run: bundle exec rubocop
27+
run: bundle exec rubocop

.github/workflows/test.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
ruby-version: ["2.7", "2.6", "2.5"]
11+
ruby-version: ["3.0", "2.7", "2.6", "2.5"]
1212

1313
steps:
1414
- uses: actions/checkout@v2
@@ -19,8 +19,12 @@ jobs:
1919
uses: ruby/setup-ruby@v1
2020
with:
2121
ruby-version: ${{ matrix.ruby-version }}
22+
- name: Remove vscode gems
23+
run: bundle config set --local without vscode
2224
- name: Install dependencies
2325
run: bundle install
26+
- name: Enable file transport in git
27+
run: git config --global protocol.file.allow always
2428
- name: Run tests
2529
run: bundle exec rake test
2630
env:

Gemfile

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@ source 'https://rubygems.org'
22

33
gemspec
44

5+
group :lint do
6+
gem 'rubocop', '>= 0.6.0'
7+
gem 'rubocop-rock'
8+
end
9+
510
group :vscode do
611
gem 'debase', '>= 0.2.2.beta10'
712
gem 'pry'
813
gem 'pry-byebug'
9-
gem 'rubocop', '>= 0.6.0'
10-
gem 'rubocop-rock'
1114
gem 'ruby-debug-ide', '>= 0.6.0'
1215
gem 'solargraph'
1316
end

autobuild.gemspec

+1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ Gem::Specification.new do |s|
3535
s.add_development_dependency "minitest", "~> 5.0", ">= 5.0"
3636
s.add_development_dependency "simplecov"
3737
s.add_development_dependency "timecop"
38+
s.add_development_dependency "webrick" if Gem::Version.new(RUBY_VERSION) > Gem::Version.new("3.0.2")
3839
end

0 commit comments

Comments
 (0)