Amazon CodeCatalyst provides software development teams one place to plan work, collaborate on code, and build, test, and deploy applications with continuous integration/continuous delivery (CI/CD) tools. For more information, see What is Amazon CodeCatalyst?
With the CodeCatalyst Action Development Kit (ADK), you can build, test, and publish actions to the CodeCatalyst actions catalog, where other users can add them to workflows. This ADK provides tooling and support to help you develop actions using libraries and frameworks.
In CodeCatalyst, an action is the main building block of a workflow. The actions you author define a logical unit of work to perform during a workflow run. By creating actions and workflows, you can automate procedures that describe how to build, test, and deploy your code as part of a continuous integration and continuous delivery (CI/CD) system. For more information, see Working with actions.
There are two components of the ADK:
A set of library interfaces you can use to interact with action matadata and CodeCatalyst resources, including actions, workflows, secrets, logs, input variables, output variables, artifacts, and reports.
// @ts-ignore
import * as core from '@aws/codecatalyst-adk-core';
// @ts-ignore
import * as project from '@aws/codecatalyst-project';
// @ts-ignore
import { RunSummaryLevel, RunSummaries } from '@aws/codecatalyst-run-summaries';
// @ts-ignore
import * as space from '@aws/codecatalyst-space';
const destinationBucket = core.getInput('DestinationBucketName')
# => Maps to the destination bucket configuration in CodeCatalyst workflow definition
const srcDir = core.getInput('SourcePath')
# => Maps to the src dir configuration in CodeCatalyst workflow definition
console.log("Running action S3 Publish Action")
let cmd = `aws s3 sync ${srcDir} s3://${destinationBucket}/${space.getSpace().name}/${project.getProject().name}/`
const cmdOutput = core.command(cmd)
console.log(cmdOutput.stdout)
if (cmdOutput.code != 0) {
core.setFailed(cmdOutput.stderr)
} else {
core.setOutputVariable("Files", cmdOutput.stdOut)
}
Tool to interact with a set of commands you can use to create, validate, and test actions.
>> adk init --lang typescript --space <CODECATALYST-SPACE-NAME> --proj <CODECATALYST-PROJECT-NAME> --repo <CODECATALYST-REPO-NAME> --action <ACTION-NAME>
...
>> adk bootstrap
...
>> adk validate
validating...
Missing README file...
action.yml parsing failed...
The following list contains the ADK CLI commands and information about how to use each command:
npm install -g lerna
.npm install --global yarn
Run the following npm command to install the ADK CLI package globally:
npm install -g @aws/codecatalyst-adk
Validate that ADK is running with the following command: adk help
Run the following build command:
$ ./build.sh
Run the following test command:
$ yarn run test-all
You can contribute to the ADK by completing development on a feature branch and creating a pull request:
See CONTRIBUTING for more information.
This project is licensed under the Apache-2.0 License.
Generated using TypeDoc