From 3bbebd53886d480fca6aafd98e5719c7b70e7fef Mon Sep 17 00:00:00 2001 From: ayntgl Date: Mon, 10 Jan 2022 21:30:23 +0400 Subject: [PATCH] ci: add go test --- .github/workflows/ci.yml | 4 +++- Makefile | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a6386e9..2bbd25d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/Makefile b/Makefile index 0588364..8b4cd1e 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,8 @@ build: go build -trimpath -ldflags "-s -w" . +test: + go test -v ./... + clean: go clean \ No newline at end of file