Skip to content

Commit

Permalink
CI init (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzaldysanchez authored Nov 16, 2023
1 parent d8da88d commit 4cc5c9c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.PHONY: all
all: build

.PHONY: build
build:
go build ./...

.PHONY: test
test:
go test /...

.PHONY: test-ci
test-ci:
go test /... -covermode=atomic -coverpkg=./... -coverprofile=./coverage.txt -json | tee output.txt

.PHONY: lint
lint:
golangci-lint run $(addsuffix /...)

.PHONY: tidy
tidy:
go mod tidy

0 comments on commit 4cc5c9c

Please sign in to comment.