From 14febbeb4c4cc062effae8f9a74299dfd2b5b6bf Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Thu, 11 Oct 2018 13:09:04 +0200 Subject: [PATCH] config: skip files that do not end in .yml --- config/config_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/config_test.go b/config/config_test.go index 64a12f9..07bbbb8 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -2,6 +2,7 @@ package config import ( "github.com/kr/pretty" + "path" "path/filepath" "testing" "github.com/stretchr/testify/assert" @@ -17,6 +18,11 @@ func TestSampleConfigsAreParsedWithoutErrors(t *testing.T) { for _, p := range paths { + if path.Ext(p) != ".yml" { + t.Logf("skipping file %s", p) + continue + } + t.Run(p, func(t *testing.T) { c, err := ParseConfig(p) if err != nil {