diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index ffea087..b4ffc63 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 db89bec..80ed5f0 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: