birthdaybot/.gitlab-ci.yml

23 lines
367 B
YAML
Raw Normal View History

2023-06-29 22:46:17 +01:00
---
stages:
- format
2023-06-29 22:46:17 +01:00
- test
check-fmt:
stage: format
image: nixos/nix:latest
script:
2023-06-29 23:33:06 +01:00
- nix-shell --run "make fmt && git diff --quiet"
2023-06-30 08:54:52 +01:00
check-gomod:
stage: format
image: nixos/nix:latest
script:
- nix-shell --run "go mod tidy && git diff --quiet"
2023-06-29 22:46:17 +01:00
run-tests:
stage: test
2023-06-29 22:51:08 +01:00
image: nixos/nix:latest
2023-06-29 22:46:17 +01:00
script:
2023-06-29 22:52:31 +01:00
- nix-shell --run "make test"