feat: Automate releases with goreleaser (#404)

This commit is contained in:
Kyle Carberry
2022-03-07 19:50:37 -06:00
committed by GitHub
parent e1205a033f
commit 3eb6fb75d6
18 changed files with 126 additions and 115 deletions
+19
View File
@@ -0,0 +1,19 @@
package cli_test
import (
"context"
"testing"
"github.com/stretchr/testify/require"
"github.com/coder/coder/cli/clitest"
)
func TestDaemon(t *testing.T) {
t.Parallel()
ctx, cancelFunc := context.WithCancel(context.Background())
go cancelFunc()
root, _ := clitest.New(t, "daemon")
err := root.ExecuteContext(ctx)
require.ErrorIs(t, err, context.Canceled)
}