@@ -70,6 +70,7 @@ func TestLinterLintOK(t *testing.T) {
70
70
config := Config {}
71
71
linter .defaultConfig = & config
72
72
73
+ t .Log ("Linting workflow file" , f )
73
74
errs , err := linter .LintFile (f , proj )
74
75
if err != nil {
75
76
t .Fatal (err )
@@ -104,6 +105,9 @@ func testFindAllWorkflowsInDir(subdir string) (string, []string, error) {
104
105
}
105
106
106
107
func checkErrors (t * testing.T , outfile string , errs []* Error ) {
108
+ t .Helper ()
109
+ t .Log ("Checking errors with" , outfile )
110
+
107
111
expected := []string {}
108
112
{
109
113
f , err := os .Open (outfile )
@@ -168,6 +172,7 @@ func TestLinterLintError(t *testing.T) {
168
172
base := strings .TrimSuffix (infile , filepath .Ext (infile ))
169
173
testName := filepath .Base (base )
170
174
t .Run (subdir + "/" + testName , func (t * testing.T ) {
175
+ t .Log ("Linting workflow file" , infile )
171
176
b , err := os .ReadFile (infile )
172
177
if err != nil {
173
178
panic (err )
@@ -317,6 +322,8 @@ func TestLinterLintProject(t *testing.T) {
317
322
name := info .Name ()
318
323
t .Run ("project/" + name , func (t * testing.T ) {
319
324
repo := filepath .Join (root , name )
325
+ t .Log ("Linting project at" , repo )
326
+
320
327
opts := LinterOptions {
321
328
WorkingDir : repo ,
322
329
}
0 commit comments