Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Added go generate in workflow (#111)
Browse files Browse the repository at this point in the history
* Added go generate in workflow]
Signed-off-by: Yuvraj <[email protected]>
  • Loading branch information
yindia authored Dec 28, 2021
1 parent 74a775b commit 7a05197
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: "0"
- name: GoGenerate and Diff
uses: cedrickring/[email protected]
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

2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7a05197

Please sign in to comment.