Skip to main content

Use Argos with GitHub Actions

Configure GitHub Actions to send screenshots to Argos visual testing platform.

1. Install

Install the @argos-cli package from npm:

npm i --save-dev @argos-cli

2. Upload the screenshots

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

npx @argos-ci/cli upload ./screenshots

Example

.github/workflows/ci.yml
name: CI
build:
runs-on: ubuntu-latest
- uses: actions/checkout@v3

# 👉 Insert the steps required to take screenshots

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

For a repository examples, check out our GitHub repository.

Enjoy!

Congratulations, now that Argos is installed, your app screenshots will be uploaded to Argos by your CI. You are ready to start the visual testing routine!