From b78c92b2dff3e663d146f26c189856c5a33e3354 Mon Sep 17 00:00:00 2001 From: naiba Date: Fri, 29 Nov 2024 21:55:29 +0800 Subject: [PATCH] fix: swago --- .github/workflows/release.yml | 4 +++- .github/workflows/test.yml | 2 ++ script/bootstrap.sh | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7626486..6777269 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -70,7 +70,9 @@ jobs: - name: generate swagger docs run: | go install github.com/swaggo/swag/cmd/swag@latest - swag init --pd -d . -g ./cmd/dashboard/main.go -o ./cmd/dashboard/docs --exclude ./cmd/dashboard/user-dist --exclude ./cmd/dashboard/admin-dist --parseGoList=false + touch ./cmd/dashboard/user-dist/a + touch ./cmd/dashboard/admin-dist/a + swag init --pd -d . -g ./cmd/dashboard/main.go -o ./cmd/dashboard/docs --parseGoList=false - name: Build with tag if: contains(github.ref, 'refs/tags/') diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8f000e2..68e3733 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,6 +32,8 @@ jobs: - name: generate swagger docs run: | go install github.com/swaggo/swag/cmd/swag@latest + touch ./cmd/dashboard/user-dist/a + touch ./cmd/dashboard/admin-dist/a swag init --pd -d . -g ./cmd/dashboard/main.go -o ./cmd/dashboard/docs --parseGoList=false - name: Unit test diff --git a/script/bootstrap.sh b/script/bootstrap.sh index 60f8029..4f60128 100755 --- a/script/bootstrap.sh +++ b/script/bootstrap.sh @@ -1,3 +1,5 @@ +touch ./cmd/dashboard/user-dist/a +touch ./cmd/dashboard/admin-dist/a swag init --pd -d . -g ./cmd/dashboard/main.go -o ./cmd/dashboard/docs --requiredByDefault protoc --go-grpc_out="require_unimplemented_servers=false:." --go_out="." proto/*.proto rm -rf ../agent/proto