From cc6b4a79bf066b1f7046ddf7cf7e84270cb96f3b Mon Sep 17 00:00:00 2001 From: Benjamin Quorning Date: Mon, 19 Aug 2024 12:04:33 +0200 Subject: [PATCH] Fix linting on CI Use a fixed version of standardrb instead of installing the most recent version every time CI is run. Also configure StandardRb to be compatible with Ruby 2.6. --- .github/workflows/ci.yml | 3 +-- .standard.yml | 1 + Gemfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 .standard.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd0938f..4a9d7ac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,8 +25,7 @@ jobs: bundler-cache: true - name: Standard - run: | - gem install standardrb + run: bundle exec standardrb build: needs: [linting] diff --git a/.standard.yml b/.standard.yml new file mode 100644 index 0000000..3af9da5 --- /dev/null +++ b/.standard.yml @@ -0,0 +1 @@ +ruby_version: 2.6 diff --git a/Gemfile b/Gemfile index 874f86f..f12209f 100644 --- a/Gemfile +++ b/Gemfile @@ -10,5 +10,5 @@ gem "multipart-parser", "~> 0.1.1" gem "rake", "~> 13.0" gem "rspec", "~> 3.0" gem "simplecov", "~> 0.19.0" -gem "standardrb", "~> 1.0" +gem "standard", "~> 1.30.0" if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.7") gem "webmock", "~> 3.4"