From b15f1ac89cc0996991b3613f7a9d7df887ec1e50 Mon Sep 17 00:00:00 2001 From: geoknee Date: Thu, 1 Feb 2024 10:45:03 +0000 Subject: [PATCH] ci: add go mod tidy check --- .circleci/config.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index dd2ae531bc..1ac6cbddaf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -134,6 +134,14 @@ jobs: - checkout - run: command: go run build/ci.go lint + tidy-geth: + resource_class: small + docker: + - image: cimg/go:1.21 + steps: + - checkout + - run: + command: go mod tidy && git diff --exit-code check-releases: docker: - image: cimg/go:1.21 @@ -157,6 +165,8 @@ workflows: name: Run unit tests for geth - lint-geth: name: Run linter over geth + - tidy-geth: + name: Check geth go.mod file has been tidied - docker-release: name: Push to Docker docker_tags: <>