소스 검색

ci: add go test

ayntgl 4 년 전
부모
커밋
3bbebd5388
2개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  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