Skip to content

Commit 36e77b8

Browse files
committed
add tests for checking invalid action.yml
1 parent 5253040 commit 36e77b8

File tree

6 files changed

+22
-0
lines changed

6 files changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/workflows/test\.yaml:7:15: name is required in action metadata "testdata(\\\\|/)projects(\\\\|/)local_action_invalid(\\\\|/)no_name(\\\\|/)action\.yaml" \[action\]/
2+
/workflows/test\.yaml:8:15: description is required in action metadata "testdata(\\\\|/)projects(\\\\|/)local_action_invalid(\\\\|/)no_desc(\\\\|/)action\.yaml" \[action\]/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: 'My action'
2+
author: 'rhysd <https://rhysd.github.io>'
3+
4+
runs:
5+
using: 'node20'
6+
main: 'index.js'

testdata/projects/local_action_invalid/no_desc/index.js

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
author: 'rhysd <https://rhysd.github.io>'
2+
description: 'my action'
3+
4+
runs:
5+
using: 'node20'
6+
main: 'index.js'

testdata/projects/local_action_invalid/no_name/index.js

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
on: push
2+
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: ./no_name
8+
- uses: ./no_desc

0 commit comments

Comments
 (0)