Add CI to test formula installs #5
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: Test Formula | |
| on: | |
| pull_request: | |
| paths: | |
| - 'Formula/*.rb' | |
| - '.github/workflows/test-formula.yml' | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| formula: [denvig, denvig-alpha] | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Homebrew | |
| uses: Homebrew/actions/setup-homebrew@master | |
| - name: Audit formula | |
| run: brew audit --strict ${{ matrix.formula }} | |
| - name: Install formula | |
| run: brew install --build-from-source ${{ matrix.formula }} | |
| - name: Test formula | |
| run: brew test ${{ matrix.formula }} | |
| ready: | |
| needs: test | |
| if: github.event_name == 'pull_request' && github.event.pull_request.draft == true | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - name: Mark PR ready for review | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: gh pr ready ${{ github.event.pull_request.number }} --repo ${{ github.repository }} |