CI Integration
Integrate Automated Future with your CI/CD pipeline.
CI Integration
Learn how to integrate Automated Future with popular CI/CD platforms.
GitHub Actions
Add Automated Future to your GitHub Actions workflow:
name: Tests
on:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm install
- run: npm install -g @automatedfuture/cli
- name: Run tests with AF
env:
AF_API_KEY: ${{ secrets.AF_API_KEY }}
run: af run -- npm test
GitLab CI
Add to your .gitlab-ci.yml:
test:
script:
- npm install -g @automatedfuture/cli
- af run -- npm test
variables:
AF_API_KEY: $AF_API_KEY
Jenkins
Add to your Jenkinsfile:
pipeline
Environment Variables
Required environment variables:
AF_API_KEY- Your Automated Future API keyAF_PROJECT_ID(optional) - Project ID if not set in config