From 0d02e1372f8907ca23638fa1376272769cff1ae9 Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Fri, 22 Sep 2023 15:42:49 +0800 Subject: [PATCH] add CI for checking formatting --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0b6ddb8..981b512 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,3 +11,4 @@ jobs: with: go-version: '^1.18.0' - run: go test ./pmtiles + - run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi