forked from npalm/action-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
npalmGH-240 start adding workflow tests
- Loading branch information
1 parent
d55f6e5
commit a4d2096
Showing
12 changed files
with
243 additions
and
248 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,74 +1,7 @@ | ||
<!-- action-docs-header action="__tests__/fixtures/all_fields_action.yml" --> | ||
## An Action | ||
<!-- action-docs-header action="__tests__/fixtures/all_fields_action.yml" --> | ||
<!-- action-docs-header action="__tests__/fixtures/workflow/all_fields_action.yml" --> | ||
|
||
<!-- action-docs-description action="__tests__/fixtures/all_fields_action.yml" --> | ||
### Description | ||
<!-- action-docs-usage action="__tests__/fixtures/workflow/all_fields_action.yml" project="npalm/action-docs" version="v1" --> | ||
|
||
Default test | ||
<!-- action-docs-description action="__tests__/fixtures/all_fields_action.yml" --> | ||
<!-- action-docs-inputs action="__tests__/fixtures/workflow/all_fields_action.yml" --> | ||
|
||
<!-- action-docs-usage action="__tests__/fixtures/all_fields_action.yml" project="npalm/action-docs" version="v1" --> | ||
### 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-usage action="__tests__/fixtures/all_fields_action.yml" project="npalm/action-docs" version="v1" --> | ||
|
||
<!-- action-docs-inputs action="__tests__/fixtures/all_fields_action.yml" --> | ||
### 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` | | ||
<!-- action-docs-inputs action="__tests__/fixtures/all_fields_action.yml" --> | ||
|
||
<!-- action-docs-outputs action="__tests__/fixtures/all_fields_action.yml" --> | ||
### Outputs | ||
|
||
| name | description | | ||
| --- | --- | | ||
| `outputA` | <p>A description A</p> | | ||
| `outputB` | <p>A description B</p> | | ||
<!-- action-docs-outputs action="__tests__/fixtures/all_fields_action.yml" --> | ||
|
||
<!-- action-docs-runs action="__tests__/fixtures/all_fields_action.yml" --> | ||
### Runs | ||
|
||
This action is a `node12` action. | ||
<!-- action-docs-runs action="__tests__/fixtures/all_fields_action.yml" --> | ||
<!-- action-docs-outputs action="__tests__/fixtures/workflow/all_fields_action.yml" --> |
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 |
---|---|---|
@@ -1,74 +1,70 @@ | ||
<!-- action-docs-header action="__tests__/fixtures/all_fields_action.yml" --> | ||
<!-- action-docs-header action="__tests__/fixtures/workflow/all_fields_action.yml" --> | ||
## A Workflow | ||
<!-- action-docs-header action="__tests__/fixtures/workflow/all_fields_action.yml" --> | ||
|
||
<!-- action-docs-header action="__tests__/fixtures/all_fields_action.yml" --> | ||
|
||
<!-- action-docs-description action="__tests__/fixtures/all_fields_action.yml" --> | ||
## Description | ||
|
||
Default test | ||
<!-- action-docs-description action="__tests__/fixtures/all_fields_action.yml" --> | ||
|
||
<!-- action-docs-usage action="__tests__/fixtures/all_fields_action.yml" project="npalm/action-docs" version="v1" --> | ||
## Usage | ||
<!-- action-docs-usage action="__tests__/fixtures/workflow/all_fields_action.yml" project="npalm/action-docs" version="v1" --> | ||
### Usage | ||
|
||
```yaml | ||
- uses: npalm/action-docs@v1 | ||
with: | ||
inputA: | ||
# A description A | ||
# | ||
# Required: false | ||
# Default: "" | ||
jobs: | ||
job1: | ||
uses: ***PROJECT***@***VERSION*** | ||
with: | ||
inputA: | ||
# A description A | ||
# | ||
# Type: string | ||
# Required: false | ||
# Default: "" | ||
|
||
inputB: | ||
# A description B | ||
# | ||
# Required: true | ||
# Default: "" | ||
inputB: | ||
# A description B | ||
# | ||
# Type: string | ||
# Required: true | ||
# Default: "" | ||
|
||
inputC: | ||
# A description C | ||
# | ||
# Required: true | ||
# Default: C | ||
inputC: | ||
# A description C | ||
# | ||
# Type: string | ||
# Required: true | ||
# Default: C | ||
|
||
inputD: | ||
# A description D | ||
# | ||
# Required: false | ||
# Default: D | ||
inputD: | ||
# A description D | ||
# | ||
# Type: string | ||
# Required: false | ||
# Default: D | ||
|
||
inputE: | ||
# A description E | ||
# | ||
# Required: false | ||
# Default: false | ||
inputE: | ||
# A description E | ||
# | ||
# Type: string | ||
# Required: false | ||
# Default: false | ||
``` | ||
<!-- action-docs-usage action="__tests__/fixtures/all_fields_action.yml" project="npalm/action-docs" version="v1" --> | ||
<!-- action-docs-usage action="__tests__/fixtures/workflow/all_fields_action.yml" project="npalm/action-docs" version="v1" --> | ||
|
||
<!-- action-docs-inputs action="__tests__/fixtures/all_fields_action.yml" --> | ||
## Inputs | ||
<!-- action-docs-inputs action="__tests__/fixtures/workflow/all_fields_action.yml" --> | ||
### 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` | | ||
<!-- action-docs-inputs action="__tests__/fixtures/all_fields_action.yml" --> | ||
| 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` | | ||
<!-- action-docs-inputs action="__tests__/fixtures/workflow/all_fields_action.yml" --> | ||
|
||
<!-- action-docs-outputs action="__tests__/fixtures/all_fields_action.yml" --> | ||
## Outputs | ||
<!-- action-docs-outputs action="__tests__/fixtures/workflow/all_fields_action.yml" --> | ||
### Outputs | ||
|
||
| name | description | | ||
| --- | --- | | ||
| `outputA` | <p>A description A</p> | | ||
| `outputB` | <p>A description B</p> | | ||
<!-- action-docs-outputs action="__tests__/fixtures/all_fields_action.yml" --> | ||
|
||
<!-- action-docs-runs action="__tests__/fixtures/all_fields_action.yml" --> | ||
## Runs | ||
<!-- action-docs-outputs action="__tests__/fixtures/workflow/all_fields_action.yml" --> | ||
|
||
This action is a `node12` action. | ||
<!-- action-docs-runs action="__tests__/fixtures/all_fields_action.yml" --> |
Oops, something went wrong.