Skip to content

Commit

Permalink
Merge pull request #1 from SiaFoundation/chris/github-action
Browse files Browse the repository at this point in the history
Add GitHub action
  • Loading branch information
ChrisSchinnerl committed Jan 19, 2024
2 parents 61a2abc + 7253a50 commit d3e10c2
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

Or `brew tap siafoundation/sia` and then `brew install <formula>`.

### Available Formulae

- [renterd](https://github.com/SiaFoundation/renterd)

## Documentation

`brew help`, `man brew` or check [Homebrew's documentation](https://docs.brew.sh).

0 comments on commit d3e10c2

Please sign in to comment.