Skip to content

Commit 09cfdf0

Browse files
authored
Merge pull request #746 from graph-gophers/test-fix-any
ci: test go fix error
2 parents 4224c42 + 392d042 commit 09cfdf0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/go.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,11 @@ jobs:
4242
echo "Run 'go fix ./...' locally and commit the changes."
4343
exit 1
4444
fi
45+
46+
gofmt -w -r 'interface{} -> any' .
47+
if ! git diff --exit-code -- .; then
48+
echo "::error::gofmt found modernization opportunities"
49+
echo "Run 'gofmt -w -r 'interface{} -> any' .' locally and commit the changes."
50+
exit 1
51+
fi
4552
echo "✓ No go fix suggestions - code is up to date."

0 commit comments

Comments
 (0)