config: skip files that do not end in .yml

This commit is contained in:
Christian Schwarz 2018-10-11 13:09:04 +02:00
parent 93c90cd705
commit 14febbeb4c

View File

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