You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-07-15 01:34:21 +02:00
feat: check -q (#2232)
* feat: check -q Signed-off-by: Carlos A Becker <caarlos0@gmail.com> * docs: cmd docs Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
committed by
GitHub
parent
e5e7950986
commit
3a45a9182e
@ -30,6 +30,12 @@ func TestCheckConfigInvalid(t *testing.T) {
|
||||
require.EqualError(t, cmd.cmd.Execute(), "invalid config: found 2 builds with the ID 'a', please fix your config")
|
||||
}
|
||||
|
||||
func TestCheckConfigInvalidQuiet(t *testing.T) {
|
||||
cmd := newCheckCmd()
|
||||
cmd.cmd.SetArgs([]string{"-f", "testdata/invalid.yml", "-q"})
|
||||
require.Error(t, cmd.cmd.Execute())
|
||||
}
|
||||
|
||||
func TestCheckConfigDeprecated(t *testing.T) {
|
||||
cmd := newCheckCmd()
|
||||
cmd.cmd.SetArgs([]string{"-f", "testdata/good.yml", "--deprecated"})
|
||||
|
Reference in New Issue
Block a user