CI/CD
Workflows
CI (ci.yml)
Runs on every push and PR to master.
- detect-changes - runs
scripts/detect-changes.shto find which connector directories have changed - test - matrix job, runs
test.shin each changed connector directory
Deploy (deploy-aws.yml)
Builds and pushes connector images to ECR and updates the Lambda functions on each
push to master. See AWS Lambda for the full flow.
Change detection
scripts/detect-changes.sh takes a base ref argument and outputs a JSON array of changed connector names. Connectors are discovered by scanning for pyproject.toml files at the repo root.
$ bash scripts/detect-changes.sh HEAD~1
["monoprix"]
The workflows pass different base refs depending on context:
- PRs:
origin/$GITHUB_BASE_REF(compares against the target branch) - Pushes:
HEAD~1(compares against the previous commit)
Adding a new connector to CI
The test workflow auto-discovers connectors by scanning for pyproject.toml files
at the repo root; nothing to configure. For the AWS deploy wiring, see
AWS Lambda.