mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-19 21:46:19 +00:00
![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
35 lines
661 B
YAML
35 lines
661 B
YAML
name: Proto linter
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- "release/v*.*.*"
|
|
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
|