2019-08-25 10:22:27 +08:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
|
|
|
- image: vuejs/ci
|
|
|
|
|
|
|
|
working_directory: ~/repo
|
|
|
|
|
|
|
|
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-10-16 00:02:20 +08:00
|
|
|
- run:
|
|
|
|
name: Run Tests
|
2019-10-15 02:51:39 +08:00
|
|
|
command: yarn test --ci --runInBand
|
2019-10-16 00:02:20 +08:00
|
|
|
|
2019-11-02 10:54:01 +08:00
|
|
|
- run:
|
|
|
|
name: Test d.ts
|
|
|
|
command: yarn test-dts
|
|
|
|
|
2019-10-16 00:02:20 +08:00
|
|
|
- run:
|
|
|
|
name: Check size
|
|
|
|
command: yarn size
|