This is an automated email from the ASF dual-hosted git repository. marsevilspirit pushed a commit to branch ci/imports-formatter in repository https://gitbox.apache.org/repos/asf/dubbo-go-pixiu-samples.git
commit 3f3286ce8b00e4efeb8739009dd546800af0b887 Author: marsevilspirit <[email protected]> AuthorDate: Sat Aug 2 20:56:57 2025 +0800 ci(fmt): add import-formatter check ci --- .github/workflows/github-actions.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 6b66ccd..22143cb 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -44,7 +44,6 @@ jobs: DING_SIGN: ${{ secrets.PROXY_DING_SIGN }} steps: - - name: Set up Go 1.x uses: actions/setup-go@v5 with: @@ -78,10 +77,11 @@ jobs: else go get -v -t -d ./... fi + go install github.com/dubbogo/tools/cmd/imports-formatter@latest - - name: Go Fmt + - name: Format Code run: | - go fmt ./... && git status && [[ -z `git status -s` ]] + go fmt ./... && GOROOT=$(go env GOROOT) imports-formatter && git status && [[ -z `git status -s` ]] # diff -u <(echo -n) <(gofmt -d -s .) - name: Install go ci lint
