Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub action #1

Merged
merged 4 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 [email protected] # 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).