Skip to content
Merged
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
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ XK6_VERSION=1.3.5
VERSION ?= $(shell git describe --tags --match "v*" --abbrev=8 2>/dev/null | sed -r 's,^v([0-9]+\.[0-9]+)\.([0-9]+)(-.*)?$$,\1 \2 \3,' | while read mm patch suffix; do if [ -z "$$suffix" ]; then echo $$mm.$$patch; else patch=`expr $$patch + 1`; echo $$mm.$${patch}-pre$$suffix; fi; done)
LDFLAGS:=-s -w -X 'go.k6.io/k6/lib/consts.VersionDetails=xk6-neofs-$(VERSION)'

.PHONY: build install_xk6 test lint format modernize

# Build xk6-neofs binary
build: install_xk6
@echo "=> Building binary"
Expand Down Expand Up @@ -33,3 +35,8 @@ format:
@gofmt -s -w ./
@echo "⇒ Processing goimports check"
@goimports -w ./

# Prettify code
modernize:
@echo "⇒ Processing modernize check"
@go run golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest -fix ./...
Loading