2019-08-25 10:22:27 +08:00
|
|
|
version: 2
|
|
|
|
|
2019-12-20 22:40:34 +08:00
|
|
|
defaults: &defaults
|
|
|
|
docker:
|
|
|
|
- image: vuejs/ci
|
2019-08-25 10:22:27 +08:00
|
|
|
|
2019-12-20 23:55:53 +08:00
|
|
|
step_restore_cache: &restore_cache
|
|
|
|
restore_cache:
|
|
|
|
keys:
|
2020-10-15 23:37:00 +08:00
|
|
|
- v1-dependencies-{{ checksum "yarn.lock" }}-1
|
|
|
|
- v1-dependencies-
|
2019-12-20 23:55:53 +08:00
|
|
|
|
|
|
|
step_install_deps: &install_deps
|
|
|
|
run:
|
|
|
|
name: Install Dependencies
|
|
|
|
command: yarn --frozen-lockfile
|
2019-08-25 10:22:27 +08:00
|
|
|
|
2019-12-20 23:55:53 +08: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 23:59:21 +08:00
|
|
|
key: v1-dependencies-{{ checksum "yarn.lock" }}-1
|
2019-12-20 23:55:53 +08:00
|
|
|
|
|
|
|
jobs:
|
2019-12-20 22:40:34 +08:00
|
|
|
test:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
2019-12-20 23:55:53 +08:00
|
|
|
- checkout
|
|
|
|
- *restore_cache
|
|
|
|
- *install_deps
|
|
|
|
- *save_cache
|
2020-03-20 04:38:31 +08:00
|
|
|
- run: yarn ls-lint
|
2020-07-02 04:18:39 +08:00
|
|
|
- run: yarn test --ci
|
2019-10-16 00:02:20 +08:00
|
|
|
|
2019-12-20 22:40:34 +08:00
|
|
|
test-dts:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
2019-12-20 23:55:53 +08:00
|
|
|
- checkout
|
|
|
|
- *restore_cache
|
|
|
|
- *install_deps
|
|
|
|
- *save_cache
|
2019-12-20 22:40:34 +08:00
|
|
|
- run: yarn test-dts
|
2019-11-02 10:54:01 +08:00
|
|
|
|
2019-12-20 22:40:34 +08:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
ci:
|
|
|
|
jobs:
|
2019-12-20 23:55:53 +08:00
|
|
|
- test
|
|
|
|
- test-dts
|