vue3-yuanma/.circleci/config.yml

65 lines
1.2 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
working_directory: ~/project/vue
2019-08-25 10:22:27 +08:00
2019-12-20 22:40:34 +08:00
jobs:
install:
<<: *defaults
2019-08-25 10:22:27 +08:00
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "yarn.lock" }}
- v1-dependencies-
2019-10-16 00:02:20 +08:00
- run:
name: Install Dependencies
2019-10-15 02:51:39 +08:00
command: yarn --frozen-lockfile
2019-08-25 10:22:27 +08:00
- save_cache:
paths:
- node_modules
- ~/.cache/yarn
key: v1-dependencies-{{ checksum "yarn.lock" }}
2019-12-20 22:40:34 +08:00
- persist_to_workspace:
root: ~/project
paths:
- vue
2019-08-25 10:22:27 +08:00
2019-12-20 22:40:34 +08:00
test:
<<: *defaults
steps:
- attach_workspace:
at: ~/project
- run: yarn test --ci --runInBand
2019-10-16 00:02:20 +08:00
2019-12-20 22:40:34 +08:00
test-dts:
<<: *defaults
steps:
- attach_workspace:
at: ~/project
- run: yarn test-dts
2019-12-20 22:40:34 +08:00
check-size:
<<: *defaults
steps:
- attach_workspace:
at: ~/project
- run: yarn size
workflows:
version: 2
ci:
jobs:
- install
- test:
requires:
- install
- test-dts:
requires:
- install
- check-size:
requires:
- install