From 068d67cd53d759a201691b79a40ff915b8de7c8a Mon Sep 17 00:00:00 2001 From: o0HalfLife0o <6436073+o0HalfLife0o@users.noreply.github.com> Date: Sun, 10 Nov 2024 02:21:32 +0800 Subject: [PATCH] Chore: format check --- .github/workflows/test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1e531d52..1d9a2fb1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,5 +40,8 @@ jobs: path: resources key: xray-geodat- enableCrossOsArchive: true + - name: Format + if: matrix.os == 'ubuntu-latest' + run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then echo "::error ::Please run 'gofmt -w .' on the project root" && exit 1; fi - name: Test run: go test -timeout 1h -v ./...