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:
|
||||
- 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
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
with import <nixpkgs> {};
|
||||
mkShell {
|
||||
buildInputs = [
|
||||
git
|
||||
go
|
||||
gotestsum
|
||||
gnumake
|
||||
|
|
Loading…
Reference in a new issue