fix with o1-mini #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Homebrew Formulas | |
on: | |
push: | |
branches: | |
- feature/update | |
jobs: | |
test: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
node-version: 20 | |
- name: Install Homebrew | |
run: brew update | |
- name: Install dependencies | |
run: brew install coreutils | |
- name: List Formula directory contents | |
run: ls -l ./Formula | |
- name: Get formula names | |
id: get_formulas | |
run: | | |
formula_string="" | |
while IFS= read -r -d $'\0' formula_file; do | |
formula_name=$(basename "$formula_file" .rb) | |
echo "Found formula: $formula_name" | |
formula_string="$formula_string $formula_name" | |
done < <(find ./Formula -maxdepth 1 -type f -name '*.rb' -print0) | |
echo "formulas=$formula_string" >> $GITHUB_ENV | |
echo "Final formulas: $formula_string" | |
- name: Test each formula | |
run: | | |
echo "Formulas to test: ${FORMULAS}" | |
for formula in ${FORMULAS}; do | |
echo "Testing formula: $formula" | |
brew install dockbrew/tap/$formula || echo "Error installing $formula" | |
done |