mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #16670 from fuweid/fix-make-fix
.github: ensure there is no change after make-fix
This commit is contained in:
commit
ddf9756807
10
.github/workflows/static-analysis.yaml
vendored
10
.github/workflows/static-analysis.yaml
vendored
@ -30,3 +30,13 @@ jobs:
|
||||
set -euo pipefail
|
||||
|
||||
make fix
|
||||
|
||||
DIFF=$(git status --porcelain)
|
||||
|
||||
if [ -n "$DIFF" ]; then
|
||||
echo "These files were modified:"
|
||||
echo
|
||||
echo "$DIFF"
|
||||
echo
|
||||
exit 1
|
||||
fi
|
||||
|
@ -23,7 +23,7 @@ linters:
|
||||
- staticcheck
|
||||
- stylecheck
|
||||
- unused
|
||||
- unconvert # Remove unnecessary type conversions
|
||||
- unconvert # Remove unnecessary type conversions
|
||||
linters-settings: # please keep this alphabetized
|
||||
goimports:
|
||||
local-prefixes: go.etcd.io # Put imports beginning with prefix after 3rd-party packages.
|
||||
|
Loading…
x
Reference in New Issue
Block a user