diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c7a9ca1..3c5f50a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,16 @@ --- stages: + - format - test +check-fmt: + stage: format + image: nixos/nix:latest + script: + - nix-shell + - make fmt + - git diff --quiet + run-tests: stage: test image: nixos/nix:latest diff --git a/model/birthdays.go b/model/birthdays.go index c18b3f2..9c488a0 100644 --- a/model/birthdays.go +++ b/model/birthdays.go @@ -8,7 +8,7 @@ import ( type Birthday struct { Name string - Email string + Email string Phone string YearOfBirth int MonthOfBirth int diff --git a/shell.nix b/shell.nix index e141813..d501a7a 100644 --- a/shell.nix +++ b/shell.nix @@ -1,6 +1,7 @@ with import {}; mkShell { buildInputs = [ + git go gotestsum gnumake