Add proto linter workflow
Some checks failed
Build / build (pull_request) Successful in 1m15s
E2E Tests / test-e2e (pull_request) Failing after 1m45s
Lint / Run golangci-lint (pull_request) Successful in 4m0s
Integration Tests / test-integration (pull_request) Successful in 1m17s

This commit is contained in:
Prathamesh Musale 2024-03-07 14:17:15 +05:30
parent 593a767a06
commit d50e5eb42d

View File

@ -0,0 +1,29 @@
name: Protobuf
# Protobuf runs buf (https://buf.build/) lint and check-breakage
# This workflow is only run when a .proto file has been changed
on:
pull_request:
paths:
- "proto/**"
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: bufbuild/buf-setup-action@v1.9.0
- uses: bufbuild/buf-lint-action@v1
with:
input: "proto"
# TODO: Update with gitea reference
# break-check:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: bufbuild/buf-setup-action@v1.9.0
# - uses: bufbuild/buf-breaking-action@v1
# with:
# input: "proto"
# against: "https://github.com/${{ github.repository }}.git#branch=${{ github.event.pull_request.base.ref }},ref=HEAD~1,subdir=proto"