docs: add brew installation instructions #7
This file contains 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 | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
name: Run Tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
go-version: [1.22] | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Get dependencies | |
run: go mod download | |
- name: Run tests | |
run: go test -v ./... | |
- name: Run tests with race detector | |
run: go test -race -v ./... | |
- name: Check gofmt | |
if: runner.os == 'Linux' | |
run: | | |
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then | |
echo "The following files are not gofmt'd:" | |
gofmt -s -l . | |
exit 1 | |
fi |