Adding the test action
Use the following procedure to add a test action to your CodeCatalyst workflow.
- Visual
-
To add a test action using the visual editor
Open the CodeCatalyst console at https://codecatalyst.aws/
. -
In the navigation pane, choose CI/CD, and then choose Workflows.
-
Choose the name of your workflow. You can filter by the source repository or branch name where the workflow is defined, or filter by workflow name or status.
-
Choose Edit.
-
Choose Visual.
-
Choose Actions.
-
In Actions, choose Test.
-
In the Inputs and Configuration tabs, complete the fields according to your needs. For a description of each field, see the Build and test actions YAML. This reference provides detailed information on each field (and corresponding YAML property value) as it appears in both the YAML and visual editors.
-
(Optional) Choose Validate to validate the workflow's YAML code before committing.
-
Choose Commit, enter a commit message, and choose Commit again.
- YAML
-
To add a build action using the YAML editor
Open the CodeCatalyst console at https://codecatalyst.aws/
. -
In the navigation pane, choose CI/CD, and then choose Workflows.
-
Choose the name of your workflow. You can filter by the source repository or branch name where the workflow is defined, or filter by workflow name or status.
-
Choose Edit.
-
Choose YAML.
-
Choose Actions.
-
In Actions, choose Test.
-
Modify the properties in the YAML code according to your needs. An explanation of each available property is provided in the Build and test actions YAML.
-
(Optional) Choose Validate to validate the workflow's YAML code before committing.
-
Choose Commit, enter a commit message, and choose Commit again.
Test action definition
The test action is defined as a set of YAML properties inside your workflow definition file. For information about these properties, see Build and test actions YAML in the Workflow YAML definition.