From caa69574dd77d5c0d328a7cd8fde7a8375d39f84 Mon Sep 17 00:00:00 2001 From: nfel Date: Mon, 18 Nov 2024 14:22:46 +0330 Subject: [PATCH] v2: test ci Signed-off-by: nfel --- .gitea/workflows/buf-ci.yaml | 17 ++++++++++++++++ .gitignore | 1 + buf.gen.yaml | 38 ++++++++++++++++++++++-------------- 3 files changed, 41 insertions(+), 15 deletions(-) create mode 100644 .gitea/workflows/buf-ci.yaml diff --git a/.gitea/workflows/buf-ci.yaml b/.gitea/workflows/buf-ci.yaml new file mode 100644 index 0000000..3cd1672 --- /dev/null +++ b/.gitea/workflows/buf-ci.yaml @@ -0,0 +1,17 @@ +name: Buf CI +on: + push: + pull_request: + types: [opened, synchronize, reopened, labeled, unlabeled] + delete: +permissions: + contents: read + pull-requests: write +jobs: + buf: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: bufbuild/buf-action@v1 + with: + input: buf generate diff --git a/.gitignore b/.gitignore index 2b6839d..38a0176 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea gen/go stub +node_modules diff --git a/buf.gen.yaml b/buf.gen.yaml index 5746cee..8f730c9 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -20,26 +20,34 @@ plugins: - remote: buf.build/protocolbuffers/go:v1.30.0 out: stub/go # NOTE: doc - - local: protoc-gen-doc - opt: html,index.html,source_relative - out: stub/doc - # NOTE: Gateway - # - remote: buf.build/grpc-ecosystem/gateway:v2.16.2 - - local: protoc-gen-grpc-gateway - out: stub/go - # NOTE: SWAGGER json files - # - remote: buf.build/grpc-ecosystem/openapiv2:v2.16.2 - - local: protoc-gen-openapiv2 - opt: import_prefix=github.com/nfel - out: stub/go + # - local: protoc-gen-doc + # opt: html,index.html,source_relative + # out: stub/doc + # # NOTE: Gateway + # # - remote: buf.build/grpc-ecosystem/gateway:v2.16.2 + # - local: protoc-gen-grpc-gateway + # out: stub/go + # # NOTE: SWAGGER json files + # # - remote: buf.build/grpc-ecosystem/openapiv2:v2.16.2 + # - local: protoc-gen-openapiv2 + # opt: import_prefix=github.com/nfel + # out: stub/go # - local: protoc-gen-go-gin # opt: # # - plugin=handler # # - plugin=service # # - plugin=mix # out: stub/go + # NOTE: Typescript + - remote: buf.build/bufbuild/es:v2.2.2 + # opt: import_prefix=github.com/nfel + out: stub/ts + + # - local: protobuf-ts + # # opt: import_prefix=github.com/nfel + # out: stub/ts inputs: - - directory: ./ - # - git_repo: ssh://git@5.34.204.11/Kahroba/proto - # branch: v2 + # - directory: ./ + - git_repo: ssh://git@5.34.204.11/Kahroba/proto + branch: v2