diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..f7099b0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,35 @@ +name: Test + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + runs-on: macos-latest + + steps: + - name: Check out Git repository + uses: actions/checkout@v3 + + - name: Set up Homebrew + run: | + brew update + brew tap homebrew/cask + brew uninstall --ignore-dependencies go@1.20 # remove old version of go + + - name: Install + run: brew install --build-from-source Formula/*.rb + + - name: Test + run: brew test Formula/*.rb + + - name: Audit + run: | + for formula in Formula/*.rb; do + formula_name=$(basename $formula .rb) + brew audit --strict --online $formula_name + done + diff --git a/README.md b/README.md index b9706e6..bd77cef 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,10 @@ Or `brew tap siafoundation/sia` and then `brew install `. +### Available Formulae + +- [renterd](https://github.com/SiaFoundation/renterd) + ## Documentation `brew help`, `man brew` or check [Homebrew's documentation](https://docs.brew.sh).