vue3-yuanma/.circleci/config.yml

64 lines
1.1 KiB
YAML
Raw Normal View History

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:
2019-12-20 23:59:21 +08:00
- v1-dependencies-{{ checksum "yarn.lock" }}-1
2019-12-20 23:55:53 +08:00
- v1-dependencies-
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
- 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-12-20 22:40:34 +08:00
check-size:
<<: *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 size
workflows:
version: 2
ci:
jobs:
2019-12-20 23:55:53 +08:00
- test
- test-dts
- check-size