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 button 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.
Warning: Be careful to store your Argos token safely.
ARGOS_TOKENenvironment 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.
# 👉 Insert the steps required to take screenshots
name: Upload screenshots to argos-ci.com
command: npx @argos-ci/cli upload ./screenshots
Read the CircleCI repository for a complete configuration example.