Skip to content

Add CI to test formula installs #5

Add CI to test formula installs

Add CI to test formula installs #5

Workflow file for this run

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 }}