Skip to content

docs: update build badge in README.md #20

docs: update build badge in README.md

docs: update build badge in README.md #20

Workflow file for this run

name: build
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: Tests
run: |
go mod tidy
diff -u <(echo -n) <(gofmt -d .)
go vet $(go list ./... | grep -v /vendor/)
go test -v -race ./...
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
if: success() && startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}