From 429ed9845283316c48e6d22e83c9bbd90b06dccb Mon Sep 17 00:00:00 2001 From: slhmy <1484836413@qq.com> Date: Tue, 12 Sep 2023 22:07:18 +0800 Subject: [PATCH] Adjust makefile --- .github/workflows/build-and-test.yaml | 4 +++- Makefile | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 896bfbf..7bfac3a 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -17,7 +17,9 @@ jobs: uses: actions/setup-go@v3 with: go-version: 1.20.5 - + - name: Set up DB + run: | + make setup-db - name: Test All run: | make test diff --git a/Makefile b/Makefile index a6325e8..dc3c24f 100644 --- a/Makefile +++ b/Makefile @@ -24,11 +24,11 @@ check: go vet ./... .PHONY: test -test: build check setup-db +test: build check go test -cover -v ./... .PHONY: run -run: build check setup-db +run: build check ./bin/service .PHONY: help