mirror of https://github.com/prometheus/prometheus
Browse Source
* github action: Add buf-lint, fix buf Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>pull/10076/head
Julien Pivotto
3 years ago
committed by
GitHub
3 changed files with 52 additions and 15 deletions
@ -0,0 +1,20 @@ |
|||||||
|
name: buf.build |
||||||
|
on: |
||||||
|
pull_request: |
||||||
|
paths: |
||||||
|
- ".github/workflows/buf-lint.yml" |
||||||
|
- "**.proto" |
||||||
|
jobs: |
||||||
|
buf: |
||||||
|
name: lint |
||||||
|
runs-on: ubuntu-latest |
||||||
|
steps: |
||||||
|
- uses: actions/checkout@v2 |
||||||
|
- uses: bufbuild/buf-setup-action@v0.6.0 |
||||||
|
- uses: bufbuild/buf-lint-action@v1 |
||||||
|
with: |
||||||
|
input: 'prompb' |
||||||
|
- uses: bufbuild/buf-breaking-action@v1 |
||||||
|
with: |
||||||
|
input: 'prompb' |
||||||
|
against: 'https://github.com/prometheus/prometheus.git#branch=main,ref=HEAD,subdir=prompb' |
@ -1,4 +1,18 @@ |
|||||||
version: v1 |
version: v1 |
||||||
name: buf.build/prometheus/prometheus |
name: buf.build/prometheus/prometheus |
||||||
|
lint: |
||||||
|
ignore_only: |
||||||
|
ENUM_VALUE_PREFIX: |
||||||
|
- remote.proto |
||||||
|
- types.proto |
||||||
|
ENUM_ZERO_VALUE_SUFFIX: |
||||||
|
- remote.proto |
||||||
|
- types.proto |
||||||
|
PACKAGE_DIRECTORY_MATCH: |
||||||
|
- remote.proto |
||||||
|
- types.proto |
||||||
|
PACKAGE_VERSION_SUFFIX: |
||||||
|
- remote.proto |
||||||
|
- types.proto |
||||||
deps: |
deps: |
||||||
- buf.build/gogo/protobuf |
- buf.build/gogo/protobuf |
||||||
|
Loading…
Reference in new issue