29 lines
529 B
YAML
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"
|