diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3769999..038e860 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,6 +3,9 @@ on: push: branches: - "**" + pull_request: + branches: + - "**" jobs: build: diff --git a/Makefile b/Makefile index 24d0c93..b95725c 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,10 @@ tidy: format: tidy go fmt ./... + golines -w . + +lint: format + golangci-lint run test: tidy go test -v ./... diff --git a/README.md b/README.md index fa1c9ce..ed8eb1f 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,11 @@ # Getting Started +## Prerequisites +* Go 1.21 +* [golangci-lint](https://golangci-lint.run/usage/install/) for linting +* [golines](https://github.com/segmentio/golines) for formatting + ## Installation ### [Go Reference](https://pkg.go.dev/github.com/maestro-org/go-sdk#section-readme)