birthdaybot/.gitlab-ci.yml
2023-07-11 16:43:20 +02:00

29 lines
529 B
YAML

---
stages:
- format
- test
check-generate:
stage: format
image: nixos/nix:latest
script:
- nix-shell --run "make generate && git diff --quiet"
check-lint:
stage: format
image: nixos/nix:latest
script:
- nix-shell --run "make fmt && git diff --quiet"
- nix-shell --run "make lint"
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
script:
- nix-shell --run "make test"