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

Added go generate in workflow #111

Merged
merged 9 commits into from
Dec 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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