fix: swago
This commit is contained in:
parent
037a131b66
commit
b78c92b2df
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -70,7 +70,9 @@ jobs:
|
|||||||
- name: generate swagger docs
|
- name: generate swagger docs
|
||||||
run: |
|
run: |
|
||||||
go install github.com/swaggo/swag/cmd/swag@latest
|
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
|
- name: Build with tag
|
||||||
if: contains(github.ref, 'refs/tags/')
|
if: contains(github.ref, 'refs/tags/')
|
||||||
|
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -32,6 +32,8 @@ jobs:
|
|||||||
- name: generate swagger docs
|
- name: generate swagger docs
|
||||||
run: |
|
run: |
|
||||||
go install github.com/swaggo/swag/cmd/swag@latest
|
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
|
swag init --pd -d . -g ./cmd/dashboard/main.go -o ./cmd/dashboard/docs --parseGoList=false
|
||||||
|
|
||||||
- name: Unit test
|
- name: Unit test
|
||||||
|
@ -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
|
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
|
protoc --go-grpc_out="require_unimplemented_servers=false:." --go_out="." proto/*.proto
|
||||||
rm -rf ../agent/proto
|
rm -rf ../agent/proto
|
||||||
|
Loading…
Reference in New Issue
Block a user