mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
3359f535fe
* Add .circleci/config.yml (#1) * Add .circleci/config.yml * Update config.yml * Update config.yml * Update config.yml * Update config.yml * Update config.yml * Update config.yml * Update config.yml * Update config.yml * Update config.yml * Update config.yml * Update package.json * Update config.yml * Update argos-upload.js * test: replace github action to circleci
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
# 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: circleci/node:16-browsers
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Install node_modules
|
|
command: npm i
|
|
- run:
|
|
name: Install argos cli
|
|
command: npm i fast-glob lodash @argos-ci/core
|
|
- run:
|
|
name: Install puppeteer
|
|
command: node node_modules/puppeteer/install.js
|
|
- run:
|
|
name: Build dist file
|
|
command: npm run dist
|
|
- run:
|
|
name: Run image screenshot tests
|
|
command: npm run test-image
|
|
- run:
|
|
name: Upload screenshots to Argos CI
|
|
command: npm run argos
|
|
|
|
|
|
# Invoke jobs via workflows
|
|
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
|
|
workflows:
|
|
test-argos-ci-workflow:
|
|
jobs:
|
|
- test-argos-ci
|