feat: complete tests
This commit is contained in:
8
main.go
8
main.go
@@ -11,13 +11,17 @@ import (
|
||||
pkgwatcher "gitea.urkob.com/urko/git-webhook-ci/pkg/watcher"
|
||||
)
|
||||
|
||||
var watcherIface pkgwatcher.WatcherIface
|
||||
var (
|
||||
watcherIface pkgwatcher.WatcherIface
|
||||
notifierIface pkgwatcher.NotifyIface
|
||||
)
|
||||
|
||||
func main() {
|
||||
isProd := os.Getenv("ENV") == "prod"
|
||||
config := cfg.NewConfig(isProd)
|
||||
|
||||
watcherIface = watcher.NewWatcher(pkgwatcher.Deploy)
|
||||
notifierIface = watcher.NewNotifier()
|
||||
watcherIface = watcher.NewWatcher(notifierIface, pkgwatcher.Deploy)
|
||||
|
||||
defer func() {
|
||||
if err := watcherIface.Close(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user