This is Zally's cli tool: it reads a swagger file locally and lints it by requesting violations check at a given Zally server.
-
Follow Go installation instructions
-
Make sure that
$GOPATH
variable is set (and$GOROOT
if necessary) -
Clone the repository:
git clone [email protected]:zalando/zally.git
-
Run tests:
cd zally/cli/zally GO111MODULE=on ./test.sh
On windows with Cmder:
cd zally GO111MODULE=on sh ./test.sh
-
Build the binary:
go build
-
Install
goreleaser
tool:go get -v github.com/goreleaser/goreleaser
Alternatively you can download a latest release from goreleaser Releases Page
-
Clean up folder
cli/zally/dist
if exists -
Make sure that the repository state is clean:
git status
-
Tag the release:
git tag v1.1.0
-
Run
goreleaser
:cd cli/zally goreleaser release --skip-publish
-
Check builds inside
cli/zally/dist
directory. -
Publish release tag to GitHub:
git push origin v1.1.0