diff --git a/internal/static/config.yaml b/internal/static/config.yaml index 4094b7690..f0ff055c0 100644 --- a/internal/static/config.yaml +++ b/internal/static/config.yaml @@ -6,7 +6,7 @@ # yaml-language-server: $schema=https://goreleaser.com/static/schema.json # vim: set ts=2 sw=2 tw=0 fo=cnqoj -version: 1 +version: 2 before: hooks: diff --git a/internal/static/config_test.go b/internal/static/config_test.go index b61a5c07e..a3dc96fcb 100644 --- a/internal/static/config_test.go +++ b/internal/static/config_test.go @@ -9,7 +9,8 @@ import ( ) func TestExampleConfig(t *testing.T) { - _, err := config.LoadReader(bytes.NewReader(ExampleConfig)) + cfg, err := config.LoadReader(bytes.NewReader(ExampleConfig)) require.NoError(t, err) require.NotEmpty(t, ExampleConfig) + require.Equal(t, 2, cfg.Version) }