dev: use fast_check_generated in CI (#1104)
This commit is contained in:
parent
be8ec2787b
commit
b49d2df623
4
.github/workflows/pr.yml
vendored
4
.github/workflows/pr.yml
vendored
@ -74,5 +74,5 @@ jobs:
|
|||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.14
|
go-version: 1.14
|
||||||
- name: Check if README.md is up to date
|
- name: Check generated files are up to date
|
||||||
run: make check_generated
|
run: make fast_check_generated
|
||||||
|
8
Makefile
8
Makefile
@ -41,12 +41,18 @@ test_linters:
|
|||||||
# Maintenance
|
# Maintenance
|
||||||
|
|
||||||
generate: install.sh assets/github-action-config.json
|
generate: install.sh assets/github-action-config.json
|
||||||
.PHONY: generate
|
fast_generate: assets/github-action-config.json
|
||||||
|
.PHONY: generate fast_generate
|
||||||
|
|
||||||
maintainer-clean: clean
|
maintainer-clean: clean
|
||||||
rm -rf install.sh
|
rm -rf install.sh
|
||||||
.PHONY: maintainer-clean
|
.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:
|
check_generated:
|
||||||
$(MAKE) --always-make generate
|
$(MAKE) --always-make generate
|
||||||
git checkout -- go.mod go.sum # can differ between go1.12 and go1.13
|
git checkout -- go.mod go.sum # can differ between go1.12 and go1.13
|
||||||
|
Loading…
x
Reference in New Issue
Block a user