actions-marketplace-validations/Assert Actual Is Expected
Write tests in GitHub Workflows for integration tests and build pipelines
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| assertion | Name of the assertion to run against value | yes | — |
| expected | Value the assertion is looking for | no | — |
| actual | Dynamic value to test against | no | — |
| type | Javascript data type that actual and expected will be cast to | yes | string |
| each | Parse multi-line `actual` into many values and assert against each | no | false |
| local-path | Path to assertions on the runner's filesystem | yes | ${{ github.workspace }} |
| error-on-fail | Report error in step when assertion fails | yes | true |
| error-message | Error message to output when assertion fails | no | — |
| convert-empty-to-null | Convert empty input values to null | yes | true |
Outputs
| name | description |
|---|---|
| message | Human readable result of the assertion |
| pass | Boolean describing whether the assertion passed |
| passed | Boolean describing whether the assertion passed |
| failed | Boolean describing whether the assertion failed |
| error | Error message (if any) that has been output to the log |