2022-10-18 19:53:20 +08:00
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/2.0/configuration-reference
version : 2.1
# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
jobs :
test-argos-ci :
docker :
2022-10-19 11:15:35 +08:00
- image : cimg/node:lts-browsers
2022-10-18 19:53:20 +08:00
steps :
- checkout
- run :
name : Install node_modules
2022-10-19 11:15:35 +08:00
command : yarn
2022-10-18 19:53:20 +08:00
- run :
name : Install argos cli
2022-10-19 11:15:35 +08:00
command : yarn add fast-glob lodash @argos-ci/core
2022-10-19 11:28:00 +08:00
- run :
name : Install puppeteer
command : node node_modules/puppeteer/install.js
2022-10-18 19:53:20 +08:00
- run :
name : Build dist file
2022-10-19 11:15:35 +08:00
command : yarn dist
2022-10-18 19:53:20 +08:00
- run :
name : Run image screenshot tests
2022-10-19 11:15:35 +08:00
command : yarn test-image
2022-10-18 19:53:20 +08:00
- run :
name : Upload screenshots to Argos CI
2022-10-19 11:15:35 +08:00
command : yarn argos
2022-10-18 22:11:44 +08:00
# The resource_class feature allows configuring CPU and RAM resources for each job. Different resource classes are available for different executors. https://circleci.com/docs/2.0/configuration-reference/#resourceclass
resource_class : large
2022-10-18 19:53:20 +08:00
# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
workflows :
test-argos-ci-workflow :
jobs :
- test-argos-ci