1
0
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:
Carlos Alexandro Becker
2021-05-20 22:47:32 -03:00
committed by GitHub
parent e5e7950986
commit 3a45a9182e
3 changed files with 15 additions and 0 deletions

View File

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