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

View file

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