-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test that run action steps without shells fail
- Loading branch information
Showing
4 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: 'missing shell' | ||
description: '' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: "say hello" | ||
run: | | ||
echo "Hello world" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
Validation failed: ValidationState { | ||
action_type: Some( | ||
Action, | ||
), | ||
file_path: Some( | ||
"010_missing_shell_in_action/action.yml", | ||
), | ||
errors: [ | ||
OneOf { | ||
code: "one_of", | ||
detail: None, | ||
path: "/runs", | ||
title: "OneOf conditions are not met", | ||
states: [ | ||
ValidationState { | ||
action_type: None, | ||
file_path: None, | ||
errors: [ | ||
Properties { | ||
code: "properties", | ||
detail: Some( | ||
"Additional property 'steps' is not allowed", | ||
), | ||
path: "/runs", | ||
title: "Property conditions are not met", | ||
}, | ||
Enum { | ||
code: "enum", | ||
detail: None, | ||
path: "/runs/using", | ||
title: "Enum conditions are not met", | ||
}, | ||
Required { | ||
code: "required", | ||
detail: None, | ||
path: "/runs/main", | ||
title: "This property is required", | ||
}, | ||
], | ||
}, | ||
ValidationState { | ||
action_type: None, | ||
file_path: None, | ||
errors: [ | ||
OneOf { | ||
code: "one_of", | ||
detail: None, | ||
path: "/runs/steps/0", | ||
title: "OneOf conditions are not met", | ||
states: [ | ||
ValidationState { | ||
action_type: None, | ||
file_path: None, | ||
errors: [ | ||
Required { | ||
code: "required", | ||
detail: None, | ||
path: "/runs/steps/0/shell", | ||
title: "This property is required", | ||
}, | ||
], | ||
}, | ||
ValidationState { | ||
action_type: None, | ||
file_path: None, | ||
errors: [ | ||
Required { | ||
code: "required", | ||
detail: None, | ||
path: "/runs/steps/0/uses", | ||
title: "This property is required", | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
ValidationState { | ||
action_type: None, | ||
file_path: None, | ||
errors: [ | ||
Properties { | ||
code: "properties", | ||
detail: Some( | ||
"Additional property 'steps' is not allowed", | ||
), | ||
path: "/runs", | ||
title: "Property conditions are not met", | ||
}, | ||
Const { | ||
code: "const", | ||
detail: None, | ||
path: "/runs/using", | ||
title: "Const condition is not met", | ||
}, | ||
Required { | ||
code: "required", | ||
detail: None, | ||
path: "/runs/image", | ||
title: "This property is required", | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fatal error validating 010_missing_shell_in_action/action.yml |