-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add 'all' option to add all the documentation to the readme in …
…one go (#537) * GH-240 upgrade packages to remove vulnerabilities * GH-240 move test fixtures to folders to separate action and workflow tests * GH-240 duplicate tests for workflows * GH-420 add run scripts to run action/workflow manually and run tests for action/workflow separately * WIP * GH-240 update CONTRIBUTING where command does not work and add additional helper scripts * GH-240 add option to have a top level header containing the name * GH-240 add header to readme and tests * Remove unused files * GH-240 fix error with enum * GH-240 ability to display workflow inputs and outputs * GH-240 add usage * GH-240 start adding workflow tests * GH-240 get a few more workflow tests working * Update action test files with main * GH-240 fix test for readme * GH-240 all fields readme test working * GH-240 sort out renaming of action > workflow of test files * GH-240 fix crlf test * GH-240 all tests fixed * GH-240 amend readme for workflow functionality * GH-240 add back in new lines at end of files * GH-240 tweak to readme to clarify description is only for actions * Add 'all' option to add docs to readme * Tidy up from merge
- Loading branch information
1 parent
6257c86
commit dc70838
Showing
8 changed files
with
164 additions
and
5 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
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
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
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 @@ | ||
<!-- action-docs-all source="__tests__/fixtures/action/all_fields_action.yml" project="npalm/action-docs" version="v1" --> |
64 changes: 64 additions & 0 deletions
64
__tests__/fixtures/action/all_fields_one_annotation.output
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,64 @@ | ||
<!-- action-docs-all source="__tests__/fixtures/action/all_fields_action.yml" project="npalm/action-docs" version="v1" --> | ||
## Description | ||
|
||
Default test | ||
|
||
## Inputs | ||
|
||
| name | description | required | default | | ||
| --- | --- | --- | --- | | ||
| `inputA` | <p>A description A</p> | `false` | `""` | | ||
| `inputB` | <p>A description B</p> | `true` | `""` | | ||
| `inputC` | <p>A description C</p> | `true` | `C` | | ||
| `inputD` | <p>A description D</p> | `false` | `D` | | ||
| `inputE` | <p>A description E</p> | `false` | `false` | | ||
|
||
|
||
## Outputs | ||
|
||
| name | description | | ||
| --- | --- | | ||
| `outputA` | <p>A description A</p> | | ||
| `outputB` | <p>A description B</p> | | ||
|
||
|
||
## Runs | ||
|
||
This action is a `node12` action. | ||
|
||
## Usage | ||
|
||
```yaml | ||
- uses: npalm/action-docs@v1 | ||
with: | ||
inputA: | ||
# A description A | ||
# | ||
# Required: false | ||
# Default: "" | ||
|
||
inputB: | ||
# A description B | ||
# | ||
# Required: true | ||
# Default: "" | ||
|
||
inputC: | ||
# A description C | ||
# | ||
# Required: true | ||
# Default: C | ||
|
||
inputD: | ||
# A description D | ||
# | ||
# Required: false | ||
# Default: D | ||
|
||
inputE: | ||
# A description E | ||
# | ||
# Required: false | ||
# Default: false | ||
``` | ||
<!-- action-docs-all source="__tests__/fixtures/action/all_fields_action.yml" project="npalm/action-docs" version="v1" --> |
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 @@ | ||
<!-- action-docs-all source="__tests__/fixtures/workflow/all_fields_workflow.yml" project="npalm/action-docs" version="v1" --> |
65 changes: 65 additions & 0 deletions
65
__tests__/fixtures/workflow/all_fields_one_annotation.output
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,65 @@ | ||
<!-- action-docs-all source="__tests__/fixtures/workflow/all_fields_workflow.yml" project="npalm/action-docs" version="v1" --> | ||
## A Workflow | ||
|
||
### Inputs | ||
|
||
| name | description | type | required | default | | ||
| --- | --- | --- | --- | --- | | ||
| `inputA` | <p>A description A</p> | `string` | `false` | `""` | | ||
| `inputB` | <p>A description B</p> | `string` | `true` | `""` | | ||
| `inputC` | <p>A description C</p> | `string` | `true` | `C` | | ||
| `inputD` | <p>A description D</p> | `string` | `false` | `D` | | ||
| `inputE` | <p>A description E</p> | `string` | `false` | `false` | | ||
|
||
|
||
### Outputs | ||
|
||
| name | description | | ||
| --- | --- | | ||
| `outputA` | <p>A description A</p> | | ||
| `outputB` | <p>A description B</p> | | ||
|
||
|
||
### Usage | ||
|
||
```yaml | ||
jobs: | ||
job1: | ||
uses: npalm/action-docs@v1 | ||
with: | ||
inputA: | ||
# A description A | ||
# | ||
# Type: string | ||
# Required: false | ||
# Default: "" | ||
|
||
inputB: | ||
# A description B | ||
# | ||
# Type: string | ||
# Required: true | ||
# Default: "" | ||
|
||
inputC: | ||
# A description C | ||
# | ||
# Type: string | ||
# Required: true | ||
# Default: C | ||
|
||
inputD: | ||
# A description D | ||
# | ||
# Type: string | ||
# Required: false | ||
# Default: D | ||
|
||
inputE: | ||
# A description E | ||
# | ||
# Type: string | ||
# Required: false | ||
# Default: false | ||
``` | ||
<!-- action-docs-all source="__tests__/fixtures/workflow/all_fields_workflow.yml" project="npalm/action-docs" version="v1" --> |
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