Skip to content

Commit

Permalink
Fix linting on CI (#21)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bquorning authored Aug 19, 2024
1 parent 10c5b8c commit 217e9d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ jobs:
bundler-cache: true

- name: Standard
run: |
gem install standardrb
run:
bundle exec standardrb
build:
needs: [linting]
Expand Down
1 change: 1 addition & 0 deletions .standard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby_version: 2.6
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 217e9d7

Please sign in to comment.