From a04654276e11ba4e00b72da7916b40fceced6d01 Mon Sep 17 00:00:00 2001 From: Steve Richert Date: Wed, 17 Apr 2024 13:29:18 +0000 Subject: [PATCH] Update the test command in the build workflow --- .github/workflows/ruby.yml | 11 ++++++----- .rubocop.yml | 2 +- Gemfile | 19 +++++++------------ gemfiles/faraday_0.gemfile | 19 +++++++------------ gemfiles/faraday_1.gemfile | 19 +++++++------------ gemfiles/faraday_2.gemfile | 19 +++++++------------ 6 files changed, 35 insertions(+), 54 deletions(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 5e0dbab..f7b8001 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -12,11 +12,12 @@ jobs: test: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: ruby-version: - - '2.7' - - '3.0' - - '3.1' + - "3.0" + - "3.1" + - "3.2" gemfile-path: - Gemfile - gemfiles/faraday_0.gemfile @@ -25,11 +26,11 @@ jobs: env: BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile-path }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true - name: Run tests - run: bundle exec rake + run: bin/test diff --git a/.rubocop.yml b/.rubocop.yml index 49ecfbe..6945493 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -5,7 +5,7 @@ require: AllCops: NewCops: enable - TargetRubyVersion: 2.7 + TargetRubyVersion: 3.0 Layout/MultilineMethodCallIndentation: Enabled: true diff --git a/Gemfile b/Gemfile index 18dd9e7..105cf40 100644 --- a/Gemfile +++ b/Gemfile @@ -4,15 +4,10 @@ source "https://rubygems.org" gemspec -group :development do - gem "rake" -end - -group :test do - gem "minitest", ">= 5" - gem "mocha" - gem "rubocop", "~> 1.63", require: false - gem "rubocop-minitest", "~> 0.35.0", require: false - gem "rubocop-performance", "~> 1.21", require: false - gem "rubocop-rake", "~> 0.6.0", require: false -end +gem "minitest", "~> 5.22" +gem "mocha", "~> 2.2" +gem "rake", "~> 13.2" +gem "rubocop-minitest", "~> 0.35.0", require: false +gem "rubocop-performance", "~> 1.21", require: false +gem "rubocop-rake", "~> 0.6.0", require: false +gem "rubocop", "~> 1.63", require: false diff --git a/gemfiles/faraday_0.gemfile b/gemfiles/faraday_0.gemfile index c261e94..bb277e0 100644 --- a/gemfiles/faraday_0.gemfile +++ b/gemfiles/faraday_0.gemfile @@ -8,15 +8,10 @@ gem "faraday", "~> 0.0" # Content below copied from Gemfile -group :development do - gem "rake" -end - -group :test do - gem "minitest", ">= 5" - gem "mocha" - gem "rubocop", "~> 1.37", require: false - gem "rubocop-minitest", require: false - gem "rubocop-performance", require: false - gem "rubocop-rake", require: false -end +gem "minitest", "~> 5.22" +gem "mocha", "~> 2.2" +gem "rake", "~> 13.2" +gem "rubocop-minitest", "~> 0.35.0", require: false +gem "rubocop-performance", "~> 1.21", require: false +gem "rubocop-rake", "~> 0.6.0", require: false +gem "rubocop", "~> 1.63", require: false diff --git a/gemfiles/faraday_1.gemfile b/gemfiles/faraday_1.gemfile index 526e5e4..c02f0b9 100644 --- a/gemfiles/faraday_1.gemfile +++ b/gemfiles/faraday_1.gemfile @@ -8,15 +8,10 @@ gem "faraday", "~> 1.0" # Content below copied from Gemfile -group :development do - gem "rake" -end - -group :test do - gem "minitest", ">= 5" - gem "mocha" - gem "rubocop", "~> 1.37", require: false - gem "rubocop-minitest", require: false - gem "rubocop-performance", require: false - gem "rubocop-rake", require: false -end +gem "minitest", "~> 5.22" +gem "mocha", "~> 2.2" +gem "rake", "~> 13.2" +gem "rubocop-minitest", "~> 0.35.0", require: false +gem "rubocop-performance", "~> 1.21", require: false +gem "rubocop-rake", "~> 0.6.0", require: false +gem "rubocop", "~> 1.63", require: false diff --git a/gemfiles/faraday_2.gemfile b/gemfiles/faraday_2.gemfile index e0c1e23..57b6db6 100644 --- a/gemfiles/faraday_2.gemfile +++ b/gemfiles/faraday_2.gemfile @@ -8,15 +8,10 @@ gem "faraday", "~> 2.0" # Content below copied from Gemfile -group :development do - gem "rake" -end - -group :test do - gem "minitest", ">= 5" - gem "mocha" - gem "rubocop", "~> 1.37", require: false - gem "rubocop-minitest", require: false - gem "rubocop-performance", require: false - gem "rubocop-rake", require: false -end +gem "minitest", "~> 5.22" +gem "mocha", "~> 2.2" +gem "rake", "~> 13.2" +gem "rubocop-minitest", "~> 0.35.0", require: false +gem "rubocop-performance", "~> 1.21", require: false +gem "rubocop-rake", "~> 0.6.0", require: false +gem "rubocop", "~> 1.63", require: false