refactor(*): 代码质量 - 优化前后端实现并完善协议与画布验证
This commit is contained in:
9
.github/workflows/quality.yml
vendored
9
.github/workflows/quality.yml
vendored
@@ -62,7 +62,14 @@ jobs:
|
||||
sudo apt-get install -y -qq redis-server
|
||||
sudo systemctl stop redis-server || true
|
||||
- name: Check formatting
|
||||
run: test -z "$(gofmt -l .)"
|
||||
shell: bash
|
||||
run: |
|
||||
unformatted="$(gofmt -l .)"
|
||||
if [ -n "$unformatted" ]; then
|
||||
printf '%s\n' "$unformatted"
|
||||
echo "::error::Go files require gofmt. Run gofmt -w on the files listed above."
|
||||
exit 1
|
||||
fi
|
||||
- name: Run Go tests
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user