Add Forgejo Actions CI workflow
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
2720a631b8
commit
9a4076df49
1 changed files with 22 additions and 0 deletions
22
.forgejo/workflows/ci.yaml
Normal file
22
.forgejo/workflows/ci.yaml
Normal file
|
|
@ -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'
|
||||
Loading…
Reference in a new issue