Skip to content

Commit 6e7132f

Browse files
committed
renamed tasks more meaningfully; eslint all project files; added test case 2
1 parent 1e3a60a commit 6e7132f

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff 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.");

0 commit comments

Comments
 (0)