Merge pull request #17353 from Homebrew/rubocop_ruby_version

Include more Ruby metadata files
This commit is contained in:
Mike McQuaid 2024-05-23 16:40:06 +01:00 committed by GitHub
commit 1c71732172
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 15 additions and 4 deletions

View File

@ -9,6 +9,13 @@ on:
permissions:
contents: read
env:
HOMEBREW_DEVELOPER: 1
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_ENV_HINTS: 1
HOMEBREW_BOOTSNAP: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1
jobs:
linting:
if: github.repository == 'Homebrew/brew'
@ -45,7 +52,6 @@ jobs:
- name: Install Ruby
uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # v1.177.1
with:
ruby-version: "3.1"
bundler-cache: true
working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}/docs
@ -85,8 +91,8 @@ jobs:
- name: Install Ruby
uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # v1.177.1
with:
ruby-version: "3.1"
bundler-cache: true
working-directory: rubydoc
- name: Process rubydoc comments
working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}/Library/Homebrew

5
.gitignore vendored
View File

@ -173,9 +173,10 @@
!/.editorconfig
!/.gitignore
!/.irb_config
!/.yardopts
!/.vale.ini
!/.ruby-version
!/.shellcheckrc
!/.vale.ini
!/.yardopts
!/CHANGELOG.md
!/CONTRIBUTING.md
!/Dockerfile

1
.ruby-version Normal file
View File

@ -0,0 +1 @@
3.3.1

1
docs/.ruby-version Normal file
View File

@ -0,0 +1 @@
3.3.1

View File

@ -1,5 +1,7 @@
source "https://rubygems.org"
ruby file: ".ruby-version"
gem "github-pages", group: :jekyll_plugins
group :test do