fix(ci): add GEM_HOME and add it to PATH

This commit is contained in:
2025-09-23 12:18:47 +03:00
parent c22aafdec6
commit 0fbcc898e5
2 changed files with 10 additions and 0 deletions

View File

@@ -38,24 +38,32 @@ jobs:
restore-keys: ${{ runner.os }}-rubygems- restore-keys: ${{ runner.os }}-rubygems-
- name: Install Homebrew Bundler RubyGems - name: Install Homebrew Bundler RubyGems
shell: bash
run: brew install-bundler-gems run: brew install-bundler-gems
- name: Install project gems - name: Install project gems
shell: bash
run: | run: |
export GEM_HOME="$HOME/.gem"
export PATH="$GEM_HOME/bin:$PATH"
gem install bundler --user-install gem install bundler --user-install
bundle install bundle install
- name: Run brew test-bot (cleanup) - name: Run brew test-bot (cleanup)
shell: bash
run: brew test-bot --only-cleanup-before run: brew test-bot --only-cleanup-before
- name: Run brew test-bot (setup) - name: Run brew test-bot (setup)
shell: bash
run: brew test-bot --only-setup run: brew test-bot --only-setup
- name: Run brew test-bot (tap syntax) - name: Run brew test-bot (tap syntax)
shell: bash
run: brew test-bot --only-tap-syntax run: brew test-bot --only-tap-syntax
- name: Check for real formulae (non-examples) - name: Check for real formulae (non-examples)
id: check-formulae id: check-formulae
shell: bash
run: | run: |
# Count formulae that are not example formulae # Count formulae that are not example formulae
REAL_FORMULAE=$(find Formula -name "*.rb" ! -name "example-*.rb" | wc -l | tr -d ' ') REAL_FORMULAE=$(find Formula -name "*.rb" ! -name "example-*.rb" | wc -l | tr -d ' ')
@@ -64,6 +72,7 @@ jobs:
- name: Run brew test-bot (formulae) - name: Run brew test-bot (formulae)
if: github.event_name == 'pull_request' && steps.check-formulae.outputs.real_formulae_count > 0 if: github.event_name == 'pull_request' && steps.check-formulae.outputs.real_formulae_count > 0
shell: bash
run: brew test-bot --only-formulae run: brew test-bot --only-formulae
- name: Upload bottles as artifact - name: Upload bottles as artifact

View File

@@ -36,6 +36,7 @@ jobs:
bundler-cache: true bundler-cache: true
- name: Parse Formulae and Build Site - name: Parse Formulae and Build Site
shell: bash
run: | run: |
ruby scripts/parse_formulas.rb ruby scripts/parse_formulas.rb
echo "Generated formulae.json with $(jq '.formulae | length' docs/_data/formulae.json) formulae" echo "Generated formulae.json with $(jq '.formulae | length' docs/_data/formulae.json) formulae"