From c807fb38440ead624505d598e7a325f45ac591ef Mon Sep 17 00:00:00 2001 From: Gusted Date: Sat, 6 Nov 2021 16:47:42 +0100 Subject: [PATCH] Exclude from watching tests - Don't rebuild the whole server when a developer is just modifying some `_test.go` file. The files won't go into the final binary so let's not watch for them. --- .air.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/.air.toml b/.air.toml index 7b5a5cb86a7d0..4b3297fc1a77e 100644 --- a/.air.toml +++ b/.air.toml @@ -7,3 +7,4 @@ bin = "gitea" include_ext = ["go", "tmpl"] exclude_dir = ["modules/git/tests", "services/gitdiff/testdata", "modules/avatar/testdata"] include_dir = ["cmd", "models", "modules", "options", "routers", "services", "templates"] +exclude_regex = ["_test.go$"]