v2: test ci

Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
nfel 2024-11-18 14:22:46 +03:30
parent b7fe72b613
commit caa69574dd
Signed by: nfel
GPG Key ID: DCC0BF3F92B0D45F
3 changed files with 41 additions and 15 deletions

View File

@ -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

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.idea
gen/go
stub
node_modules

View File

@ -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