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
|
.idea
|
||||||
gen/go
|
gen/go
|
||||||
stub
|
stub
|
||||||
|
node_modules
|
||||||
|
|||||||
38
buf.gen.yaml
38
buf.gen.yaml
@ -20,26 +20,34 @@ plugins:
|
|||||||
- remote: buf.build/protocolbuffers/go:v1.30.0
|
- remote: buf.build/protocolbuffers/go:v1.30.0
|
||||||
out: stub/go
|
out: stub/go
|
||||||
# NOTE: doc
|
# NOTE: doc
|
||||||
- local: protoc-gen-doc
|
# - local: protoc-gen-doc
|
||||||
opt: html,index.html,source_relative
|
# opt: html,index.html,source_relative
|
||||||
out: stub/doc
|
# out: stub/doc
|
||||||
# NOTE: Gateway
|
# # NOTE: Gateway
|
||||||
# - remote: buf.build/grpc-ecosystem/gateway:v2.16.2
|
# # - remote: buf.build/grpc-ecosystem/gateway:v2.16.2
|
||||||
- local: protoc-gen-grpc-gateway
|
# - local: protoc-gen-grpc-gateway
|
||||||
out: stub/go
|
# out: stub/go
|
||||||
# NOTE: SWAGGER json files
|
# # NOTE: SWAGGER json files
|
||||||
# - remote: buf.build/grpc-ecosystem/openapiv2:v2.16.2
|
# # - remote: buf.build/grpc-ecosystem/openapiv2:v2.16.2
|
||||||
- local: protoc-gen-openapiv2
|
# - local: protoc-gen-openapiv2
|
||||||
opt: import_prefix=github.com/nfel
|
# opt: import_prefix=github.com/nfel
|
||||||
out: stub/go
|
# out: stub/go
|
||||||
# - local: protoc-gen-go-gin
|
# - local: protoc-gen-go-gin
|
||||||
# opt:
|
# opt:
|
||||||
# # - plugin=handler
|
# # - plugin=handler
|
||||||
# # - plugin=service
|
# # - plugin=service
|
||||||
# # - plugin=mix
|
# # - plugin=mix
|
||||||
# out: stub/go
|
# 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:
|
inputs:
|
||||||
- directory: ./
|
# - directory: ./
|
||||||
# - git_repo: ssh://git@5.34.204.11/Kahroba/proto
|
- git_repo: ssh://git@5.34.204.11/Kahroba/proto
|
||||||
# branch: v2
|
branch: v2
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user