ant-design/.circleci/config.yml

37 lines
1.2 KiB
YAML
Raw Normal View History

# 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:
- image: cimg/node:16.19.0-browsers
steps:
- checkout
- run:
name: Install node_modules
2022-10-19 11:35:19 +08:00
command: npm i
- run:
name: Install argos cli
2022-10-19 11:35:19 +08:00
command: npm i fast-glob lodash @argos-ci/core
- run:
name: Build dist file
2022-10-19 11:35:19 +08:00
command: npm run dist
- run:
name: Run image screenshot tests
2022-10-19 11:35:19 +08:00
command: npm run test-image
- run:
name: Upload screenshots to Argos CI
2022-10-19 11:35:19 +08:00
command: npm run argos
# 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
# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
workflows:
test-argos-ci-workflow:
jobs:
- test-argos-ci