mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
chore(ci): run screenshot in CI
This commit is contained in:
@ -1,6 +1,12 @@
|
|||||||
version: 2
|
version: 2
|
||||||
|
|
||||||
aliases:
|
aliases:
|
||||||
|
- &install-roboto
|
||||||
|
name: Install Roboto
|
||||||
|
command: |
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y fonts-roboto
|
||||||
|
|
||||||
- &restore-cache
|
- &restore-cache
|
||||||
keys:
|
keys:
|
||||||
- dependency-cache-{{ checksum "package.json" }}-2
|
- dependency-cache-{{ checksum "package.json" }}-2
|
||||||
@ -41,6 +47,7 @@ jobs:
|
|||||||
build-core:
|
build-core:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
steps:
|
steps:
|
||||||
|
- run: *install-roboto
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: /tmp/workspace
|
at: /tmp/workspace
|
||||||
@ -87,6 +94,28 @@ jobs:
|
|||||||
command: npm run test.treeshake
|
command: npm run test.treeshake
|
||||||
working_directory: /tmp/workspace/core
|
working_directory: /tmp/workspace/core
|
||||||
|
|
||||||
|
test-core-screenshot:
|
||||||
|
<<: *defaults
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- attach_workspace:
|
||||||
|
at: /tmp/workspace
|
||||||
|
- run:
|
||||||
|
name: Run Screenshot
|
||||||
|
command: npx stencil test --e2e --screenshot --screenshot-connector=scripts/screenshot/ci.js --ci
|
||||||
|
working_directory: /tmp/workspace/core
|
||||||
|
|
||||||
|
test-core-screenshot-master:
|
||||||
|
<<: *defaults
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- attach_workspace:
|
||||||
|
at: /tmp/workspace
|
||||||
|
- run:
|
||||||
|
name: Run Screenshot
|
||||||
|
command: npx stencil test --e2e --screenshot --screenshot-connector=scripts/screenshot/ci.js --ci --update-screenshot
|
||||||
|
working_directory: /tmp/workspace/core
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build:
|
build:
|
||||||
@ -100,3 +129,10 @@ workflows:
|
|||||||
requires: [build-core]
|
requires: [build-core]
|
||||||
- test-core-treeshake:
|
- test-core-treeshake:
|
||||||
requires: [build-core]
|
requires: [build-core]
|
||||||
|
- test-core-screenshot:
|
||||||
|
requires: [build-core]
|
||||||
|
- test-core-screenshot-master:
|
||||||
|
requires: [build-core]
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
only: master
|
||||||
|
Reference in New Issue
Block a user