This commit is contained in:
xinran chen
2023-07-12 14:57:07 +08:00
parent b472f30b36
commit 6d3e15c262
4 changed files with 34 additions and 47 deletions

View File

@@ -71,10 +71,10 @@ jobs:
- name: Install goimports
run: go install golang.org/x/tools/cmd/goimports
- run: goimports -local scroll-tech/miner-api/ -w .
# - run: go mod tidy
- run: go mod tidy
# If there are any diffs from goimports or go mod tidy, fail.
# - name: Verify no changes from goimports and go mod tidy
# run: |
# if [ -n "$(git status --porcelain)" ]; then
# exit 1
# fi
- name: Verify no changes from goimports and go mod tidy
run: |
if [ -n "$(git status --porcelain)" ]; then
exit 1
fi