Skip to main content

Use Argos with Drone CI

Configure Drone CI to send screenshots to Argos visual testing platform.

1. Install

2. Set ARGOS_TOKEN as CI secret

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

  • Step 1: Get the token value
    On Argos, go to the repository you want to set and click on the "settings" tab. Store the ARGOS_TOKEN value.

  • Step 2: Create a secret in your CI
    Set the ARGOS_TOKEN as an environment variable and paste the value you stored in the previous step.

If you are not comfortable with storing secret, read Drone CI documentation about repository secret.

3. Upload the screenshots

Add the following command to your CI workflow to upload screenshots to Argos:

npx @argos-ci/cli upload ./screenshots

Example

.drone.yml
kind: pipeline
type: docker
name: default

steps:
# 👉 Insert the steps required to take screenshots

- name: Upload screenshots to argos-ci.com
commands:
- npx @argos-ci/cli upload ./screenshots
secrets: [ARGOS_TOKEN]

Enjoy!