Merge pull request #540 from planetscale/create-pull-request/patch #924
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: make-generate-and-diff | |
on: | |
push: | |
branches: | |
- main | |
- release-** | |
pull_request: | |
branches: | |
- main | |
- release-** | |
jobs: | |
build: | |
name: Block generated files from becoming outdated | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.22.1 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
with: | |
path: src/planetscale.dev/vitess-operator | |
- name: make generate-and-diff | |
run: make -C src/planetscale.dev/vitess-operator generate-and-diff |