CI/CD Integration
Integrate CDM validation and transformation into your continuous integration pipelines.
GitHub Actions
Minimal configuration to run CDM validation as part of your GitHub Actions pipeline.
GitHub Actionsjson
name: CDM Validation
on: [push, pull_request]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate CDM Trades
uses: atheryon-ai/cdm-validate-action@v1
with:
api-key: ${{ secrets.ATHERYON_API_KEY }}
input-path: ./trades/*.json
fail-on-error: trueGitLab CI
Minimal configuration to run CDM validation as part of your GitLab CI pipeline.
GitLab CIjson
stages:
- validate
cdm-validate:
stage: validate
image: atheryon/cdm-cli:latest
script:
- cdm validate ./trades/*.json
--api-key $ATHERYON_API_KEY
--format junit
--output report.xml
artifacts:
reports:
junit: report.xmlAzure DevOps
Minimal configuration to run CDM validation as part of your Azure DevOps pipeline.
Azure DevOpsjson
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
steps:
- task: Bash@3
displayName: 'Validate CDM Trades'
inputs:
targetType: 'inline'
script: |
npx @atheryon/cdm-cli validate \
--input ./trades/*.json \
--api-key $(ATHERYON_API_KEY) \
--fail-on-error