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,20 +1,23 @@ |
|||||||
|
name: buf.build |
||||||
on: |
on: |
||||||
push: |
push: |
||||||
branches: |
branches: |
||||||
- main |
- main |
||||||
|
|
||||||
jobs: |
jobs: |
||||||
steps: |
buf: |
||||||
- uses: actions/checkout@v2 |
name: lint and publish |
||||||
- uses: bufbuild/buf-setup-action@v0.6.0 |
runs-on: ubuntu-latest |
||||||
- uses: bufbuild/buf-lint-action@v1 |
steps: |
||||||
with: |
- uses: actions/checkout@v2 |
||||||
input: 'prompb' |
- uses: bufbuild/buf-setup-action@v0.6.0 |
||||||
- uses: bufbuild/buf-breaking-action@v1 |
- uses: bufbuild/buf-lint-action@v1 |
||||||
with: |
with: |
||||||
input: 'prompb' |
input: 'prompb' |
||||||
against: 'https://github.com/prometheus/prometheus.git#branch=main,ref=HEAD~1,subdir=prompb' |
- uses: bufbuild/buf-breaking-action@v1 |
||||||
- uses: bufbuild/buf-push-action@v1 |
with: |
||||||
with: |
input: 'prompb' |
||||||
input: 'prompb' |
against: 'https://github.com/prometheus/prometheus.git#branch=main,ref=HEAD~1,subdir=prompb' |
||||||
buf_token: ${{ secrets.BUF_TOKEN }} |
- uses: bufbuild/buf-push-action@v1 |
||||||
|
with: |
||||||
|
input: 'prompb' |
||||||
|
buf_token: ${{ secrets.BUF_TOKEN }} |
||||||
|
@ -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