Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate stringer files automatically #841

Merged
merged 6 commits into from
Nov 8, 2021
Merged
Changes from 1 commit
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
Prev Previous commit
ci: export GOPATH
g4s8 committed Nov 8, 2021

Verified

This commit was signed with the committer’s verified signature. The key has expired.
g4s8 Kirill
commit 9c737a6d50a84f16b4387ddd109ef0fbf4a49b5c
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -123,6 +123,8 @@ jobs:
sudo apt-get install -y --no-install-recommends libssh2-1-dev
g4s8 marked this conversation as resolved.
Show resolved Hide resolved
go install golang.org/x/tools/cmd/stringer@latest
- name: Generate files
g4s8 marked this conversation as resolved.
Show resolved Hide resolved
run: make generate
run: |
export PATH=$(go env GOPATH)/bin:$PATH
make generate
- name: Check nothing changed
run: git diff --quiet --exit-code || (echo "detected changes after generate" ; git status ; exit 1)