-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-240 move test fixtures to folders to separate action and workflow …
…tests
- Loading branch information
1 parent
fd431d7
commit 36dc07a
Showing
48 changed files
with
611 additions
and
71 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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-inputs action="__tests__/fixtures/action/action_docs_action_action.yml" --> |
10 changes: 10 additions & 0 deletions
10
__tests__/fixtures/action/action_docs_action_readme.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,10 @@ | ||
<!-- action-docs-inputs action="__tests__/fixtures/action/action_docs_action_action.yml" --> | ||
## Inputs | ||
|
||
| name | description | required | default | | ||
| --- | --- | --- | --- | | ||
| `readme` | <p>Readme file to update.</p> | `false` | `README.md` | | ||
| `actionFile` | <p>The action definition file.</p> | `false` | `action.yml` | | ||
| `tocLevel` | <p>TOC level used for the headers.</p> | `false` | `2` | | ||
| `lineBreaks` | <p>Line breaks to be used in updated readme (LF|CR|CRLF).</p> | `false` | `LF` | | ||
<!-- action-docs-inputs action="__tests__/fixtures/action/action_docs_action_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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<!-- action-docs-usage action="__tests__/fixtures/action/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,25 @@ | ||
<!-- action-docs-usage action="__tests__/fixtures/action/action.yml" project="npalm/action-docs" version="v1" --> | ||
## Usage | ||
|
||
```yaml | ||
- uses: npalm/action-docs@v1 | ||
with: | ||
inputA: | ||
# - Item 1 | ||
# - foo, bar, baz | ||
# - Item 2 | ||
# - [github](https://github.com/) | ||
# - **blah** | ||
# - Item 3 | ||
# | ||
# Required: false | ||
# Default: test | ||
|
||
inputB: | ||
# This is a | ||
# multiline description | ||
# | ||
# Required: false | ||
# Default: test | ||
``` | ||
<!-- action-docs-usage action="__tests__/fixtures/action/action.yml" project="npalm/action-docs" version="v1" --> |
File renamed without changes.
File renamed without changes.
64 changes: 32 additions & 32 deletions
64
...sts__/fixtures/all_fields_action.yml.crlf → ...ixtures/action/all_fields_action.yml.crlf
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,32 +1,32 @@ | ||
name: 'An Action' | ||
description: 'Default test' | ||
author: 'Niek Palm' | ||
inputs: | ||
inputA: | ||
description: 'A description A' | ||
required: false | ||
inputB: | ||
description: 'A description B' | ||
required: true | ||
inputC: | ||
description: 'A description C' | ||
required: true | ||
default: C | ||
inputD: | ||
description: 'A description D' | ||
required: false | ||
default: D | ||
inputE: | ||
description: 'A description E' | ||
required: false | ||
default: false | ||
outputs: | ||
outputA: | ||
description: 'A description A' | ||
outputB: | ||
description: 'A description B' | ||
runs: | ||
using: 'node12' | ||
main: 'dist/index.js' | ||
name: 'An Action' | ||
description: 'Default test' | ||
author: 'Niek Palm' | ||
inputs: | ||
inputA: | ||
description: 'A description A' | ||
required: false | ||
inputB: | ||
description: 'A description B' | ||
required: true | ||
inputC: | ||
description: 'A description C' | ||
required: true | ||
default: C | ||
inputD: | ||
description: 'A description D' | ||
required: false | ||
default: D | ||
inputE: | ||
description: 'A description E' | ||
required: false | ||
default: false | ||
|
||
outputs: | ||
outputA: | ||
description: 'A description A' | ||
outputB: | ||
description: 'A description B' | ||
|
||
runs: | ||
using: 'node12' | ||
main: 'dist/index.js' |
File renamed without changes.
File renamed without changes.
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,9 @@ | ||
<!-- action-docs-description action="__tests__/fixtures/action/all_fields_action.yml" --> | ||
|
||
<!-- action-docs-usage action="__tests__/fixtures/action/all_fields_action.yml" project="npalm/action-docs" version="v1" --> | ||
|
||
<!-- action-docs-inputs action="__tests__/fixtures/action/all_fields_action.yml" --> | ||
|
||
<!-- action-docs-outputs action="__tests__/fixtures/action/all_fields_action.yml" --> | ||
|
||
<!-- action-docs-runs action="__tests__/fixtures/action/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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!-- action-docs-description action="__tests__/fixtures/action/all_fields_action.yml.crlf" --> | ||
|
||
<!-- action-docs-inputs action="__tests__/fixtures/action/all_fields_action.yml.crlf" --> | ||
|
||
<!-- action-docs-outputs action="__tests__/fixtures/action/all_fields_action.yml.crlf" --> | ||
|
||
<!-- action-docs-runs action="__tests__/fixtures/action/all_fields_action.yml.crlf" --> |
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,70 @@ | ||
<!-- action-docs-description action="__tests__/fixtures/action/all_fields_action.yml" --> | ||
## Description | ||
|
||
Default test | ||
<!-- action-docs-description action="__tests__/fixtures/action/all_fields_action.yml" --> | ||
|
||
<!-- action-docs-usage action="__tests__/fixtures/action/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/action/all_fields_action.yml" project="npalm/action-docs" version="v1" --> | ||
|
||
<!-- action-docs-inputs action="__tests__/fixtures/action/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/action/all_fields_action.yml" --> | ||
|
||
<!-- action-docs-outputs action="__tests__/fixtures/action/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/action/all_fields_action.yml" --> | ||
|
||
<!-- action-docs-runs action="__tests__/fixtures/action/all_fields_action.yml" --> | ||
## Runs | ||
|
||
This action is a `node12` action. | ||
<!-- action-docs-runs action="__tests__/fixtures/action/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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!-- action-docs-description action="__tests__/fixtures/action/all_fields_action.yml.crlf" --> | ||
## Description | ||
|
||
Default test | ||
<!-- action-docs-description action="__tests__/fixtures/action/all_fields_action.yml.crlf" --> | ||
|
||
<!-- action-docs-inputs action="__tests__/fixtures/action/all_fields_action.yml.crlf" --> | ||
## 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/action/all_fields_action.yml.crlf" --> | ||
|
||
<!-- action-docs-outputs action="__tests__/fixtures/action/all_fields_action.yml.crlf" --> | ||
## Outputs | ||
|
||
| name | description | | ||
| --- | --- | | ||
| `outputA` | <p>A description A</p> | | ||
| `outputB` | <p>A description B</p> | | ||
<!-- action-docs-outputs action="__tests__/fixtures/action/all_fields_action.yml.crlf" --> | ||
|
||
<!-- action-docs-runs action="__tests__/fixtures/action/all_fields_action.yml.crlf" --> | ||
## Runs | ||
|
||
This action is a `node12` action. | ||
<!-- action-docs-runs action="__tests__/fixtures/action/all_fields_action.yml.crlf" --> |
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,42 @@ | ||
<!-- action-docs-description action="__tests__/fixtures/action/all_fields_action.yml" --> | ||
## Description | ||
|
||
Default test | ||
|
||
|
||
<!-- action-docs-description action="__tests__/fixtures/action/all_fields_action.yml" --> | ||
|
||
<!-- action-docs-inputs action="__tests__/fixtures/action/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/action/all_fields_action.yml" --> | ||
|
||
<!-- action-docs-outputs action="__tests__/fixtures/action/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/action/all_fields_action.yml" --> | ||
|
||
<!-- action-docs-runs action="__tests__/fixtures/action/all_fields_action.yml" --> | ||
## Run | ||
|
||
This action is a `docker` action. | ||
|
||
|
||
<!-- action-docs-runs action="__tests__/fixtures/action/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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!-- action-docs-description action="__tests__/fixtures/action/all_fields_action.yml" --> | ||
## Description | ||
|
||
Default test | ||
<!-- action-docs-description action="__tests__/fixtures/action/all_fields_action.yml" --> | ||
|
||
<!-- action-docs-inputs action="__tests__/fixtures/action/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/action/all_fields_action.yml" --> | ||
|
||
<!-- action-docs-outputs action="__tests__/fixtures/action/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/action/all_fields_action.yml" --> | ||
|
||
<!-- action-docs-runs action="__tests__/fixtures/action/all_fields_action.yml" --> | ||
## Runs | ||
|
||
This action is a `node12` action. | ||
<!-- action-docs-runs action="__tests__/fixtures/action/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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<!-- action-docs-usage action="__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,37 @@ | ||
<!-- action-docs-usage action="__tests__/fixtures/action/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/action/all_fields_action.yml" project="npalm/action-docs" version="v1" --> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,12 @@ | ||
<!-- action-docs-inputs action="__tests__/fixtures/action/action_docs_action_action.yml" --> | ||
## Inputs | ||
|
||
| name | description | required | default | | ||
| --- | --- | --- | --- | | ||
| `readme` | <p>Readme file to update.</p> | `false` | `README.md` | | ||
| `actionFile` | <p>The action definition file.</p> | `false` | `action.yml` | | ||
| `tocLevel` | <p>TOC level used for the headers.</p> | `false` | `2` | | ||
| `lineBreaks` | <p>Line breaks to be used in updated readme (LF|CR|CRLF).</p> | `false` | `LF` | | ||
<!-- action-docs-inputs action="__tests__/fixtures/action/action_docs_action_action.yml" --> | ||
|
||
<!-- action-docs-outputs action="__tests__/fixtures/action/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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!-- action-docs-inputs action="__tests__/fixtures/action/action_docs_action_action.yml" --> | ||
## Inputs | ||
|
||
| name | description | required | default | | ||
| --- | --- | --- | --- | | ||
| `readme` | <p>Readme file to update.</p> | `false` | `README.md` | | ||
| `actionFile` | <p>The action definition file.</p> | `false` | `action.yml` | | ||
| `tocLevel` | <p>TOC level used for the headers.</p> | `false` | `2` | | ||
| `lineBreaks` | <p>Line breaks to be used in updated readme (LF|CR|CRLF).</p> | `false` | `LF` | | ||
<!-- action-docs-inputs action="__tests__/fixtures/action/action_docs_action_action.yml" --> | ||
|
||
<!-- action-docs-outputs action="__tests__/fixtures/action/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/action/all_fields_action.yml" --> |
Oops, something went wrong.