Skip to content

Commit d3aaf67

Browse files
committed
Unconvert linter addition
1 parent eb3b07a commit d3aaf67

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/basictests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ jobs:
2525
gofmt -s -l $(find . -name "*.go" -type f)
2626
exit 1
2727
fi
28+
- name: Unconvert lint
29+
run: |
30+
if [ "$(go tool unconvert ./... | wc -l)" -gt 0 ]; then
31+
echo "Unnecessary type conversions found. Please run 'make unconvert' and commit changes."
32+
go tool unconvert ./...
33+
exit 1
34+
fi
2835
- name: Test
2936
run: |
3037
go build -tags appengine

0 commit comments

Comments
 (0)