Include more Ruby metadata files
- include `.ruby-version` and in the project root (and unignore in `.gitignore`) to improve editor support which expects these files - use the `.ruby-version` in `docs/Gemfile` to use a consistent Ruby version here - remove hardcoded Ruby versions from `workflows/docs` in favour of using the `.ruby-version` file instead - use more consistent configuration in `workflows/docs` to match `workflows/tests`
This commit is contained in:
parent
93eb5ea04e
commit
3392226a10
10
.github/workflows/docs.yml
vendored
10
.github/workflows/docs.yml
vendored
@ -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
5
.gitignore
vendored
@ -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
1
.ruby-version
Normal file
@ -0,0 +1 @@
|
||||
3.3.1
|
1
docs/.ruby-version
Normal file
1
docs/.ruby-version
Normal file
@ -0,0 +1 @@
|
||||
3.3.1
|
@ -1,5 +1,7 @@
|
||||
source "https://rubygems.org"
|
||||
|
||||
ruby file: ".ruby-version"
|
||||
|
||||
gem "github-pages", group: :jekyll_plugins
|
||||
|
||||
group :test do
|
||||
|
Loading…
x
Reference in New Issue
Block a user