diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e186ce..01698cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,11 @@ concurrency: permissions: read-all +env: + HOMEBREW_DEVELOPER: 1 + HOMEBREW_NO_AUTO_UPDATE: 1 + HOMEBREW_NO_ENV_HINTS: 1 + jobs: test-bot: strategy: @@ -26,6 +31,12 @@ jobs: actions: read steps: + - name: Setup Ruby + uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0 + with: + bundler-cache: true + ruby-version-file: .ruby-version + - name: Set up Homebrew id: set-up-homebrew uses: Homebrew/actions/setup-homebrew@main @@ -38,6 +49,7 @@ jobs: restore-keys: ${{ runner.os }}-rubygems- - name: Install Homebrew Bundler RubyGems + if: steps.cache.outputs.cache-hit != 'true' shell: bash run: brew install-bundler-gems diff --git a/.github/workflows/pages-build.yml b/.github/workflows/pages-build.yml index 9099fb8..f96928a 100644 --- a/.github/workflows/pages-build.yml +++ b/.github/workflows/pages-build.yml @@ -31,9 +31,10 @@ jobs: fetch-depth: 0 - name: Setup Ruby - uses: ruby/setup-ruby@cf7216d52fba1017929b4d7162fabe2b30af5b49 # v1.262.0 + uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0 with: bundler-cache: true + ruby-version-file: .ruby-version - name: Parse Formulae and Build Site shell: bash