2019-08-25 02:22:27 +00:00
|
|
|
version: 2
|
|
|
|
|
2019-12-20 14:40:34 +00:00
|
|
|
defaults: &defaults
|
|
|
|
docker:
|
|
|
|
- image: vuejs/ci
|
2019-08-25 02:22:27 +00:00
|
|
|
|
2019-12-20 15:55:53 +00:00
|
|
|
step_restore_cache: &restore_cache
|
|
|
|
restore_cache:
|
|
|
|
keys:
|
2020-10-15 15:37:00 +00:00
|
|
|
- v1-dependencies-{{ checksum "yarn.lock" }}-1
|
|
|
|
- v1-dependencies-
|
2019-12-20 15:55:53 +00:00
|
|
|
|
|
|
|
step_install_deps: &install_deps
|
|
|
|
run:
|
|
|
|
name: Install Dependencies
|
|
|
|
command: yarn --frozen-lockfile
|
2019-08-25 02:22:27 +00:00
|
|
|
|
2019-12-20 15:55:53 +00:00
|
|
|
step_save_cache: &save_cache
|
|
|
|
save_cache:
|
|
|
|
paths:
|
|
|
|
- node_modules
|
|
|
|
- packages/compiler-core/node_modules
|
|
|
|
- packages/compiler-sfc/node_modules
|
|
|
|
- packages/vue/node_modules
|
|
|
|
- ~/.cache/yarn
|
2019-12-20 15:59:21 +00:00
|
|
|
key: v1-dependencies-{{ checksum "yarn.lock" }}-1
|
2019-12-20 15:55:53 +00:00
|
|
|
|
|
|
|
jobs:
|
2019-12-20 14:40:34 +00:00
|
|
|
test:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
2019-12-20 15:55:53 +00:00
|
|
|
- checkout
|
|
|
|
- *restore_cache
|
|
|
|
- *install_deps
|
|
|
|
- *save_cache
|
2020-07-01 20:18:39 +00:00
|
|
|
- run: yarn test --ci
|
2019-10-15 16:02:20 +00:00
|
|
|
|
2019-12-20 14:40:34 +00:00
|
|
|
test-dts:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
2019-12-20 15:55:53 +00:00
|
|
|
- checkout
|
|
|
|
- *restore_cache
|
|
|
|
- *install_deps
|
|
|
|
- *save_cache
|
2019-12-20 14:40:34 +00:00
|
|
|
- run: yarn test-dts
|
2019-11-02 02:54:01 +00:00
|
|
|
|
2019-12-20 14:40:34 +00:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
ci:
|
|
|
|
jobs:
|
2019-12-20 15:55:53 +00:00
|
|
|
- test
|
|
|
|
- test-dts
|