diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 02d309fa..898a4c06 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -74,5 +74,5 @@ jobs: uses: actions/setup-go@v2 with: go-version: 1.14 - - name: Check if README.md is up to date - run: make check_generated + - name: Check generated files are up to date + run: make fast_check_generated diff --git a/Makefile b/Makefile index 20264b4b..16138e4d 100644 --- a/Makefile +++ b/Makefile @@ -41,12 +41,18 @@ test_linters: # Maintenance generate: install.sh assets/github-action-config.json -.PHONY: generate +fast_generate: assets/github-action-config.json +.PHONY: generate fast_generate maintainer-clean: clean rm -rf install.sh .PHONY: maintainer-clean +fast_check_generated: + $(MAKE) --always-make fast_generate + git checkout -- go.mod go.sum # can differ between go1.12 and go1.13 + git diff --exit-code # check no changes + check_generated: $(MAKE) --always-make generate git checkout -- go.mod go.sum # can differ between go1.12 and go1.13