Use Argos with Other CI
Configure your CI to send screenshots to Argos visual testing platform.
1. Install Argos CLI
- npm
- yarn
- pnpm
npm i --save-dev @argos-ci/cli
yarn add --dev @argos-ci/cli
pnpm add --save-dev @argos-ci/cli
Read the CLI documentation if you need information about advanced usages.
2. Expose ARGOS_TOKEN
as environment variable
- Log in to Argos, navigate to your repository settings and copy your
ARGOS_TOKEN
. - Set a new secret called
ARGOS_TOKEN
in your CI settings with the value you copied in the previous step.
Depending the CI you use, you may have to expose an secret when you call the argos' upload command.
to set ARGOS_TOKEN
as a secret in the settings.
3. Upload the screenshots
Add the following command to your CI workflow to upload screenshots to Argos:
- npm
- yarn
- pnpm
npx @argos-ci/cli upload ./screenshots
yarn run @argos-ci/cli upload ./screenshots
pnpm exec @argos-ci/cli upload ./screenshots
What's next?
Congratulations on installing Argos! 🎉
The next step is to integrate visual review into your development workflow. Visit our review changes section to learn how to.