From c7d293ff38853c2c72452d03a83eb154a1f0f0dc Mon Sep 17 00:00:00 2001 From: cristianoliveira Date: Sat, 15 Jun 2024 21:29:45 +0200 Subject: [PATCH] chore: adds watcher --- .watch.yaml | 21 +++++++++++++++++++++ shell.nix | 1 + 2 files changed, 22 insertions(+) create mode 100644 .watch.yaml diff --git a/.watch.yaml b/.watch.yaml new file mode 100644 index 0000000..42bc3cd --- /dev/null +++ b/.watch.yaml @@ -0,0 +1,21 @@ + +## Funzzy events file +# more details see: https://github.com/cristianoliveira/funzzy +# +# list here all the events and the commands that it should execute + +- name: run my unit tests @quick + run: 'make test' + change: '**/*.go' + +- name: run lint @quick + run: 'make lint' + change: '**/*.go' + +- name: run tests with tag test-only @quick + run: 'go test -tags test-only' + change: '**/*.go' + +- name: run integration tests + run: 'make integration' + change: 'tests/*' diff --git a/shell.nix b/shell.nix index 229fe8a..5ef89e6 100644 --- a/shell.nix +++ b/shell.nix @@ -4,6 +4,7 @@ pkgs.mkShell { # were you to to use nix-build not nix-shell and build whatever you were working on buildInputs = [ pkgs.go + pkgs.funzzy ]; shell = pkgs.zsh;