This is an automated email from the ASF dual-hosted git repository.
spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-go-plugin-runner.git
The following commit(s) were added to refs/heads/master by this push:
new 0f11d8d ci: run goimport (#40)
0f11d8d is described below
commit 0f11d8d7faee5df9e28d97315078a966530c77f0
Author: 罗泽轩 <[email protected]>
AuthorDate: Tue Sep 28 18:07:22 2021 +0800
ci: run goimport (#40)
---
.github/workflows/lint.yml | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 7872fd7..093445b 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -53,3 +53,15 @@ jobs:
echo $diffs
exit 1
fi
+
+ - name: run goimports
+ working-directory: ./
+ run: |
+ go get golang.org/x/tools/cmd/goimports
+ export PATH=$PATH:$(go env GOPATH)/bin/
+ diffs=`goimports -d .`
+ if [[ -n $diffs ]]; then
+ echo "Files are not formatted by goimport:"
+ echo $diffs
+ exit 1
+ fi