1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-04-15 11:56:56 +02:00

fix: init in v2 (#4915)

closes #4914
This commit is contained in:
Carlos Alexandro Becker 2024-06-05 16:28:17 -03:00 committed by GitHub
parent 426803061d
commit d84738094d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -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:

View File

@ -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)
}