Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions pkg/parser/schema_location_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,16 @@ func TestValidateMainWorkflowFrontmatterWithSchemaAndLocation_AdditionalProperti
wantErr: true,
errContains: "requird",
},
{
name: "top-level roles field is rejected pointing to on.roles",
frontmatter: map[string]any{
"on": "push",
"roles": []string{"admin", "maintainer", "write"},
},
filePath: "/test/workflow.md",
wantErr: true,
errContains: "'roles' belongs under 'on'",
},
{
name: "dispatch-repository key is accepted by schema",
frontmatter: map[string]any{
Expand Down
Loading