ci: add go test
This commit is contained in:
parent
e7f335ebf0
commit
3bbebd5388
2 changed files with 6 additions and 1 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
3
Makefile
3
Makefile
|
|
@ -1,5 +1,8 @@
|
|||
build:
|
||||
go build -trimpath -ldflags "-s -w" .
|
||||
|
||||
test:
|
||||
go test -v ./...
|
||||
|
||||
clean:
|
||||
go clean
|
||||
Loading…
Add table
Reference in a new issue