You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assertions in a workflow are valuable, especially in workflows for validating the behaviour of an action. There's a fantastic action Assert Actionhowever it is limited to a fixed set of string based assertions.
A Workflow can include custom assertions defined in the repository
expected, actual
- uses: pr-mpt/actions-assertwith:
expected: "Hello, World!"actual: "${{ steps.message.outputs.greeting }}"assertion: "is-equal"type: boolean|string|int|jsoneach: true # should we iterate through a new line delimited list
Features
Configurable type (integer, boolean, string)
Accepts external assertions from npm packages and the repository
An assertion might have more complex configuration, how do we provide that? Some sort of hacky nested json driven with for config? e.g: an http request might require a bearer token -> environment variables
The text was updated successfully, but these errors were encountered:
Assertions in a workflow are valuable, especially in workflows for validating the behaviour of an action. There's a fantastic action Assert Action however it is limited to a fixed set of string based assertions.
expected
,actual
Features
Assertions
Questions
An assertion might have more complex configuration, how do we provide that? Some sort of hacky nested json driven with for config? e.g: an http request might require a bearer token-> environment variablesThe text was updated successfully, but these errors were encountered: