Overview

Exponent can run in your CI/CD pipeline so long as you have an Exponent API key. Simply install Exponent CLI and run exponent run in your CI/CD pipeline.

1

Install Exponent CLI as a step in your CI/CD pipeline

  - name: Install exponent-run
    run: pipx install exponent-run
2

Authenticate with Exponent

Add your Exponent API key as a secret to your repository and run exponent login:

- name: Exponent login
  run: exponent login --key ${{ secrets.EXPONENT_API_KEY }}
3

Run Exponent Shell with a preloaded prompt and autorun mode

Give Exponent instructions on what to do for your pipeline and run exponent shell:

  - name: Run Exponent
    env:
      EXPONENT_API_KEY: ${{ secrets.EXPONENT_API_KEY }}
    run: |
      exponent shell --prompt "Fix bugs and submit a PR" --autorun --depth 10