From bde2b119bd5c57d222660c4c502fe4e58d785c3f Mon Sep 17 00:00:00 2001 From: BWbwchen Date: Tue, 7 Nov 2023 13:11:09 +0800 Subject: [PATCH] [test ]: add test script and github action with test Signed-off-by: Bo-Wei Chen(BWbwchen) --- .github/workflows/go.yml | 4 ++-- Makefile | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 1905e29..ded10b9 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -18,5 +18,5 @@ jobs: with: go-version: 1.17 -# - name: Test -# run: go test -v ./... + - name: Test + run: make test diff --git a/Makefile b/Makefile index 24f81dc..2c7ab77 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,9 @@ clean : -rm output/* -rm cmd/*.so +test: + go test -v ./master + grpc : protoc --go-grpc_out=rpc --go_out=rpc rpc/*.proto