From 470f135275977e43ecffd48e2141602dba73167e Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Fri, 30 Jun 2023 09:54:52 +0200 Subject: [PATCH] Add a check for gomod --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cc8bbbb..fd62e7c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,6 +9,12 @@ check-fmt: script: - nix-shell --run "make fmt && git diff --quiet" +check-gomod: + stage: format + image: nixos/nix:latest + script: + - nix-shell --run "go mod tidy && git diff --quiet" + run-tests: stage: test image: nixos/nix:latest