mirror of
https://github.com/usememos/memos.git
synced 2024-12-21 02:01:55 +03:00
2e82ba50f2
* chore: bump actions/checkout to v4 Signed-off-by: GitHub <noreply@github.com> * chore: bump actions/setup-go to v4 Signed-off-by: GitHub <noreply@github.com> --------- Signed-off-by: GitHub <noreply@github.com>
33 lines
630 B
YAML
33 lines
630 B
YAML
name: Proto linter
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- "release/*.*.*"
|
|
paths:
|
|
- "proto/**"
|
|
|
|
jobs:
|
|
lint-protos:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup buf
|
|
uses: bufbuild/buf-setup-action@v1
|
|
- name: buf lint
|
|
uses: bufbuild/buf-lint-action@v1
|
|
with:
|
|
input: "proto"
|
|
- name: buf format
|
|
run: |
|
|
if [[ $(buf format -d) ]]; then
|
|
echo "Run 'buf format -w'"
|
|
exit 1
|
|
fi
|