From 0fbcc898e5d01310a9609c43dac03e6e21bfe4a0 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Tue, 23 Sep 2025 12:18:47 +0300 Subject: [PATCH] fix(ci): add GEM_HOME and add it to PATH --- .github/workflows/ci.yml | 9 +++++++++ .github/workflows/pages-build.yml | 1 + 2 files changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b9fe0cd..9e186ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,24 +38,32 @@ jobs: restore-keys: ${{ runner.os }}-rubygems- - name: Install Homebrew Bundler RubyGems + shell: bash run: brew install-bundler-gems - name: Install project gems + shell: bash run: | + export GEM_HOME="$HOME/.gem" + export PATH="$GEM_HOME/bin:$PATH" gem install bundler --user-install bundle install - name: Run brew test-bot (cleanup) + shell: bash run: brew test-bot --only-cleanup-before - name: Run brew test-bot (setup) + shell: bash run: brew test-bot --only-setup - name: Run brew test-bot (tap syntax) + shell: bash run: brew test-bot --only-tap-syntax - name: Check for real formulae (non-examples) id: check-formulae + shell: bash run: | # Count formulae that are not example formulae REAL_FORMULAE=$(find Formula -name "*.rb" ! -name "example-*.rb" | wc -l | tr -d ' ') @@ -64,6 +72,7 @@ jobs: - name: Run brew test-bot (formulae) if: github.event_name == 'pull_request' && steps.check-formulae.outputs.real_formulae_count > 0 + shell: bash run: brew test-bot --only-formulae - name: Upload bottles as artifact diff --git a/.github/workflows/pages-build.yml b/.github/workflows/pages-build.yml index 1ed75f6..9099fb8 100644 --- a/.github/workflows/pages-build.yml +++ b/.github/workflows/pages-build.yml @@ -36,6 +36,7 @@ jobs: bundler-cache: true - name: Parse Formulae and Build Site + shell: bash run: | ruby scripts/parse_formulas.rb echo "Generated formulae.json with $(jq '.formulae | length' docs/_data/formulae.json) formulae"