diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml new file mode 100644 index 0000000..0218d80 --- /dev/null +++ b/.forgejo/workflows/ci.yaml @@ -0,0 +1,22 @@ +name: Proto CI +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install buf + uses: bufbuild/buf-setup-action@v1 + + - name: Lint protos + run: buf lint + + - name: Check breaking changes + if: github.event_name == 'pull_request' + run: buf breaking --against '.git#branch=main'