From 7a05197f61942ce547ec367407b4c71b8fa03d46 Mon Sep 17 00:00:00 2001 From: Yuvraj Date: Tue, 28 Dec 2021 15:54:54 +0530 Subject: [PATCH] Added go generate in workflow (#111) * Added go generate in workflow] Signed-off-by: Yuvraj --- .github/workflows/pull_request.yml | 10 +++++----- Makefile | 2 -- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index ffea087e..b4ffc638 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -43,9 +43,9 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: "0" - - name: GoGenerate and Diff - uses: cedrickring/golang-action@1.6.0 - env: - GO111MODULE: "on" + - uses: actions/setup-go@v2 with: - args: make gen-config && git diff --quiet || { echo "run go gonerate ./..."; exit 1; } + go-version: '1.17' + - name: Go generate and diff + run: DELTA_CHECK=true make generate + diff --git a/Makefile b/Makefile index db89bec8..80ed5f01 100644 --- a/Makefile +++ b/Makefile @@ -24,8 +24,6 @@ compile: mkdir -p ./bin go build -o pflags ./cli/pflags/main.go && mv ./pflags ./bin -gen-config: download_tooling - @go generate ./... .PHONY: test_unit_codecov test_unit_codecov: