github.com/Finschia/finschia-sdk@v0.48.1/.github/workflows/proto.yml (about) 1 name: Protobuf 2 # Protobuf runs buf (https://buf.build/) lint and check-breakage 3 # This workflow is only run when a .proto file has been changed 4 on: 5 pull_request: 6 paths: 7 - "**.proto" 8 jobs: 9 lint: 10 name: proto-lint(clang-format) 11 runs-on: ubuntu-latest 12 timeout-minutes: 5 13 steps: 14 - uses: actions/checkout@v3 15 - uses: DoozyX/clang-format-lint-action@v0.16 16 with: 17 source: '.' 18 exclude: './third_party' 19 extensions: 'proto' 20 clangFormatVersion: 12 21 inplace: True 22 swagger: 23 name: check generated swagger files 24 runs-on: ubuntu-latest 25 steps: 26 - uses: actions/checkout@v3 27 - uses: actions/setup-go@v4.0.1 28 with: 29 go-version: '1.20' 30 - uses: ./.github/actions/generate-swagger 31 - name: diff 32 run: git diff 33 34 # TODO ebony: release comment after merging initial proto files to v2 branch 35 # breakage: 36 # runs-on: ubuntu-latest 37 # steps: 38 # - uses: actions/checkout@master 39 # - name: check-breakage 40 # run: make proto-check-breaking