Skip to content

Commit

Permalink
ci: add buf lints to generated file checks
Browse files Browse the repository at this point in the history
Signed-off-by: William Findlay <[email protected]>
  • Loading branch information
will-isovalent committed Feb 12, 2025
1 parent 98b8154 commit a7eaa87
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/generated-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,20 @@ on:
- main
- v*
paths-ignore:
- 'docs/**'
- "docs/**"
pull_request:
paths-ignore:
- 'docs/**'
- "docs/**"

jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: bufbuild/buf-action@v1
with:
breaking_against: ".git#branch=origin/main,subdir=api/v1"
exclude_paths: "vendor"
generated-files:
runs-on: ubuntu-latest
steps:
Expand All @@ -19,7 +27,7 @@ jobs:
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
# renovate: datasource=golang-version depName=go
go-version: '1.23.5'
go-version: "1.23.5"
- name: Go version
run: go version
- name: Validate that generated files are up to date.
Expand Down

0 comments on commit a7eaa87

Please sign in to comment.