mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +00:00
* build(deps): Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 Bumps google.golang.org/protobuf from 1.32.0 to 1.33.0. --- updated-dependencies: - dependency-name: google.golang.org/protobuf dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * proto-lint: Update build deps * buf: Run buf generate --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Adrian Gallagher <adrian.gallagher@thrasher.io>
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
name: proto-checks
|
|
'on':
|
|
- push
|
|
- pull_request
|
|
jobs:
|
|
proto-lint:
|
|
name: proto-checks
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: 1.22.x
|
|
|
|
- name: Setup build depends
|
|
run: |
|
|
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@latest
|
|
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@latest
|
|
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
|
|
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
|
|
|
|
- uses: bufbuild/buf-setup-action@v1.30.0
|
|
|
|
- name: buf generate
|
|
working-directory: ./gctrpc
|
|
run: buf generate
|
|
|
|
- uses: bufbuild/buf-lint-action@v1
|
|
with:
|
|
input: gctrpc
|
|
|
|
- name: buf format
|
|
run: buf format --diff --exit-code
|
|
|
|
- name: buf generate backtester
|
|
working-directory: ./backtester/btrpc
|
|
run: buf generate
|
|
|
|
- uses: bufbuild/buf-lint-action@v1
|
|
with:
|
|
input: ./backtester/btrpc
|
|
|
|
- name: buf format backtester
|
|
run: buf format --diff --exit-code
|