mirror of
https://github.com/ivuorinen/homebrew-tap.git
synced 2026-02-04 01:45:16 +00:00
fix(ci): add GEM_HOME and add it to PATH
This commit is contained in:
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
1
.github/workflows/pages-build.yml
vendored
1
.github/workflows/pages-build.yml
vendored
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user