Ver código fonte

ci: add go test

ayntgl 4 anos atrás
pai
commit
3bbebd5388
2 arquivos alterados com 6 adições e 1 exclusões
  1. 3 1
      .github/workflows/ci.yml
  2. 3 0
      Makefile

+ 3 - 1
.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

+ 3 - 0
Makefile

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