Add fmt check (with bad format to force a CI failure)

This commit is contained in:
Miguel de la Cruz 2023-06-30 00:30:59 +02:00
parent 901b42d801
commit b4348d8fac
3 changed files with 11 additions and 1 deletions

View file

@ -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

View file

@ -1,6 +1,7 @@
with import <nixpkgs> {};
mkShell {
buildInputs = [
git
go
gotestsum
gnumake