test: format code on running tests

This commit is contained in:
bakito 2025-02-19 08:07:38 +01:00
parent 3812101c25
commit 4f80a7979f
No known key found for this signature in database
GPG Key ID: BCCEB081DB8A24D8
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ fmt: tb.golines tb.gofumpt
$(TB_GOLINES) --base-formatter="$(TB_GOFUMPT)" --max-len=120 --write-output .
# Run tests
test: generate lint test-ci
test: generate fmt lint test-ci
# Run ci tests
test-ci: mocks tidy tb.ginkgo

View File

@ -20,7 +20,7 @@ const (
type Config struct {
Origin AdGuardInstance `json:"origin" yaml:"origin" env:"ORIGIN"`
Replica *AdGuardInstance `json:"replica,omitempty" yaml:"replica,omitempty" env:"REPLICA"`
Replicas []AdGuardInstance `json:"replicas,omitempty" yaml:"replicas,omitempty" faker:"slice_len=2"`
Replicas []AdGuardInstance `json:"replicas,omitempty" yaml:"replicas,omitempty" faker:"slice_len=2"`
Cron string `json:"cron,omitempty" yaml:"cron,omitempty" env:"CRON"`
RunOnStart bool `json:"runOnStart,omitempty" yaml:"runOnStart,omitempty" env:"RUN_ON_START"`
PrintConfigOnly bool `json:"printConfigOnly,omitempty" yaml:"printConfigOnly,omitempty" env:"PRINT_CONFIG_ONLY"`