[codex] Accept Tart project release formulas #35
Workflow file for this run
This file contains hidden or 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: Validate Homebrew recipes | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate-homebrew: | |
| name: validate-homebrew | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| with: | |
| persist-credentials: false | |
| - name: Check Ruby syntax | |
| run: | | |
| recipe_directories=(Casks) | |
| if [ -d Formula ]; then | |
| recipe_directories+=(Formula) | |
| fi | |
| find "${recipe_directories[@]}" -name '*.rb' -type f -print0 | \ | |
| xargs -0 -n1 ruby -c | |
| - name: Tap local repository | |
| run: brew tap openai/tools "$GITHUB_WORKSPACE" | |
| - name: Check Homebrew can load the tap | |
| run: brew readall openai/tools | |
| - name: Validate generated recipe structure | |
| run: ruby scripts/validate_recipes.rb |