Add fmt check (with bad format to force a CI failure)
This commit is contained in:
parent
901b42d801
commit
b4348d8fac
3 changed files with 11 additions and 1 deletions
|
@ -1,7 +1,16 @@
|
||||||
---
|
---
|
||||||
stages:
|
stages:
|
||||||
|
- format
|
||||||
- test
|
- test
|
||||||
|
|
||||||
|
check-fmt:
|
||||||
|
stage: format
|
||||||
|
image: nixos/nix:latest
|
||||||
|
script:
|
||||||
|
- nix-shell
|
||||||
|
- make fmt
|
||||||
|
- git diff --quiet
|
||||||
|
|
||||||
run-tests:
|
run-tests:
|
||||||
stage: test
|
stage: test
|
||||||
image: nixos/nix:latest
|
image: nixos/nix:latest
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
|
|
||||||
type Birthday struct {
|
type Birthday struct {
|
||||||
Name string
|
Name string
|
||||||
Email string
|
Email string
|
||||||
Phone string
|
Phone string
|
||||||
YearOfBirth int
|
YearOfBirth int
|
||||||
MonthOfBirth int
|
MonthOfBirth int
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
with import <nixpkgs> {};
|
with import <nixpkgs> {};
|
||||||
mkShell {
|
mkShell {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
git
|
||||||
go
|
go
|
||||||
gotestsum
|
gotestsum
|
||||||
gnumake
|
gnumake
|
||||||
|
|
Loading…
Reference in a new issue