ci: add go test

This commit is contained in:
ayntgl 2022-01-10 21:30:23 +04:00
parent e7f335ebf0
commit 3bbebd5388
2 changed files with 6 additions and 1 deletions

View file

@ -14,4 +14,6 @@ jobs:
- name: Format
run: gofmt -d -e -s .
- name: Build
run: go build .
run: make build
- name: Test
run: make test

View file

@ -1,5 +1,8 @@
build:
go build -trimpath -ldflags "-s -w" .
test:
go test -v ./...
clean:
go clean