Add linter and a little bit more tests
All checks were successful
ci/woodpecker/push/build Pipeline was successful

Signed-off-by: Nikolai Rodionov <iam@allanger.xyz>
This commit is contained in:
2026-05-18 11:02:10 +02:00
parent 732f70238a
commit 8c5f88cb46
8 changed files with 489 additions and 18 deletions

View File

@@ -39,7 +39,8 @@ func (cmd *Migrate) Run(ctx context.Context) error {
log.Info("Preparing database migrations")
m, err := migrate.NewWithDatabaseInstance(
cmd.MigrationsPath,
"postgres", driver)
"postgres", driver,
)
if err != nil {
log.Error(err, "Couldn't perform database migrations")
return err