Skip to content

Commit

Permalink
add action to validate generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
lovromazgon committed Nov 30, 2023
1 parent 3d1c94b commit 204cabe
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/validate-generated-files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: validate-generated-files

on:
push:
branches: [ main ]
pull_request:

jobs:
validate-generated-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'

- name: Check generated files
run: |
export PATH=$PATH:$(go env GOPATH)/bin
make install-tools
make generate
git diff --exit-code --numstat

0 comments on commit 204cabe

Please sign in to comment.