Skip to main content

Use Argos with CircleCI

Configure CircleCI to send screenshots to Argos visual testing platform.

Configuring environment variable

Argos uses the ARGOS_TOKEN to identify to which repository the screenshots you send are related.

To get token value, sign in to Argos and click on the Gear buttonbutton in front of your repository.

In CircleCI project, go to Project settings > Environment Variables > Add Environment Variable. Then, set the ARGOS_TOKEN as an environment variable.

CircleCI setup environment variable
Warning: Be careful to store your Argos token safely. ARGOS_TOKEN environment variable should be accessible by your CI but not visible publicly.

If you are not comfortable with storing secret, read CircleCI documentation about environment variables.

Configure CircleCI

executor: node/default
- checkout

# 👉 Insert the steps required to take screenshots

- run:
name: Upload screenshots to
command: npx @argos-ci/cli upload ./screenshots

- build

Read the CircleCI repository for a complete configuration example.