File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,11 @@ jobs:
1515 steps :
1616 - uses : actions/checkout@v4
1717
18- # Validate action.yml is valid metadata
19- - name : Validate action metadata
18+ - name : Validate action.yml Metadata
2019 run : |
2120 yq eval '.' action.yml > /dev/null
2221
23- # Dry-run test your action
24- - name : Test run of the composite action
22+ - name : Test Case 1 - Composite Action - Success Path
2523 uses : ./
2624 with :
2725 label : " Self-Test"
@@ -37,10 +35,17 @@ jobs:
3735 name : embedded-js
3836 path : ' final_script.js'
3937
40- # Lint any JS scripts (for embedded logic or examples)
41- - name : Lint embedded JavaScript
38+ - name : Lint Embedded JavaScript and project files
4239 env :
4340 NODE_ENV : development
4441 run : |
4542 npm ci
46- npx eslint final_script.js
43+ npx eslint .
44+
45+ - name : Test Case 2 - Composite Action - No Return
46+ uses : ./
47+ with :
48+ label : " Self-Test-No-Return"
49+ post-target : github-step-summary
50+ script : |
51+ console.log("Expect error: script does not return string.");
You can’t perform that action at this time.
0 commit comments