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 ./...