1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +02:00
goreleaser/internal/pipe/publish/publish_test.go
Carlos Alexandro Becker 860b4a8f81
chore: gofumpt & lint (#2190)
Signed-off-by: Carlos Becker <caarlos0@gmail.com>
2021-04-25 14:20:49 -03:00

24 lines
521 B
Go

package publish
import (
"testing"
"github.com/goreleaser/goreleaser/pkg/config"
"github.com/goreleaser/goreleaser/pkg/context"
"github.com/stretchr/testify/require"
)
func TestDescription(t *testing.T) {
require.NotEmpty(t, Pipe{}.String())
}
func TestPublish(t *testing.T) {
ctx := context.New(config.Project{})
ctx.Config.Release.Disable = true
ctx.TokenType = context.TokenTypeGitHub
for i := range ctx.Config.Dockers {
ctx.Config.Dockers[i].SkipPush = "true"
}
require.NoError(t, Pipe{}.Run(ctx))
}