From 0014575649fc4329dc44367d1c5a45cf600c9192 Mon Sep 17 00:00:00 2001 From: Xavier Coulon Date: Fri, 17 Jul 2020 08:31:35 +0200 Subject: [PATCH] chore(build): run 'verify-parser' goal on CI This will ensure that a PR includes the optimized parser when running on CI Fixes #732 Signed-off-by: Xavier Coulon --- .github/workflows/ci-build.yml | 2 +- make/go.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 1c0d97cd..15a9901c 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -41,7 +41,7 @@ jobs: - name: Test run: | - make test-with-coverage + make verify-parser test-with-coverage - name: Codecov if: runner.os == 'Linux' diff --git a/make/go.mk b/make/go.mk index 833f9180..93b3ad1b 100644 --- a/make/go.mk +++ b/make/go.mk @@ -67,7 +67,7 @@ verify-parser: prebuild-checks ifneq ($(shell git diff --quiet pkg/parser/parser.go; echo $$?), 0) $(error "parser was generated with an older version of 'mna/pigeon' or without the '-optimize' option(s).") else - @echo "parser is ok" + @echo "generated parser is ok" endif .PHONY: install