v2: test ci
Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
parent
b7fe72b613
commit
caa69574dd
17
.gitea/workflows/buf-ci.yaml
Normal file
17
.gitea/workflows/buf-ci.yaml
Normal 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
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
.idea
|
||||
gen/go
|
||||
stub
|
||||
node_modules
|
||||
|
||||
38
buf.gen.yaml
38
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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user