Skip to content

Commit

Permalink
Add e2e folder to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
gavv committed Apr 4, 2023
1 parent 616c75f commit 7c85115
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,36 @@ tidy:
cd _examples && go mod tidy -v

gen:
go generate
go generate ./...

fmt:
gofmt -s -w . ./_examples
gofmt -s -w . ./e2e ./_examples
ifneq (,$(findstring GNU,$(shell sed --version)))
sed -r -e ':loop' -e 's,^(//\t+) ,\1\t,g' -e 't loop' -i *.go _examples/*.go
sed -r -e ':loop' -e 's,^(//\t+) ,\1\t,g' -e 't loop' -i *.go e2e/*.go _examples/*.go
endif

build:
go build
go build ./...
cd _examples && go build

lint:
golangci-lint run .
golangci-lint run ./...
cd _examples && golangci-lint run .

test:
ifneq ($(shell which gotest),)
gotest
gotest ./...
cd _examples && gotest
else
go test
go test ./...
cd _examples && go test
endif

short:
ifneq ($(shell which gotest),)
gotest -short
gotest -short ./...
else
go test -short
go test -short ./...
endif

spell:
Expand Down

0 comments on commit 7c85115

Please sign in to comment.