From 5a28ea946e5062fcdb0e2357507ef9c492a4bc9a Mon Sep 17 00:00:00 2001 From: Gabriel Arjones Date: Fri, 10 Feb 2023 17:45:35 -0300 Subject: [PATCH] run github workflows on ruby 3.0 --- .github/workflows/lint.yml | 10 ++++++++-- .github/workflows/test.yml | 10 +++++++++- Gemfile | 7 +++++-- autobuild.gemspec | 1 + 4 files changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 665569cf..e677a6b1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 @@ -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 \ No newline at end of file + run: bundle exec rubocop diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2e4e55c2..69192d1f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -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: diff --git a/Gemfile b/Gemfile index 18112f58..fd8dfa70 100644 --- a/Gemfile +++ b/Gemfile @@ -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 diff --git a/autobuild.gemspec b/autobuild.gemspec index e24e9081..2ace1ca3 100644 --- a/autobuild.gemspec +++ b/autobuild.gemspec @@ -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