Skip to content

Commit 0d9f842

Browse files
committed
ci: use CircleCI workflow
1 parent fd9d255 commit 0d9f842

File tree

1 file changed

+61
-17
lines changed

1 file changed

+61
-17
lines changed

.circleci/config.yml

Lines changed: 61 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,73 @@
11
version: 2
2-
jobs:
3-
build:
4-
docker:
5-
# specify the version you desire here
6-
- image: vuejs/ci
72

8-
working_directory: ~/repo
3+
defaults: &defaults
4+
working_directory: ~/project/vue
5+
docker:
6+
- image: vuejs/ci
97

8+
jobs:
9+
install:
10+
<<: *defaults
1011
steps:
1112
- checkout
12-
13-
# Download and cache dependencies
1413
- restore_cache:
1514
keys:
16-
- v1-dependencies-{{ checksum "yarn.lock" }}
17-
# fallback to using the latest cache if no exact match is found
18-
- v1-dependencies-
19-
15+
- v1-vue-{{ .Branch }}-{{ checksum "yarn.lock" }}
16+
- v1-vue-{{ .Branch }}-
17+
- v1-vue-
2018
- run: yarn install
21-
2219
- save_cache:
20+
key: v1-vue-{{ .Branch }}-{{ checksum "yarn.lock" }}
2321
paths:
24-
- node_modules
22+
- node_modules/
2523
- ~/.cache/yarn
26-
key: v1-dependencies-{{ checksum "yarn.lock" }}
24+
- persist_to_workspace:
25+
root: ~/project
26+
paths:
27+
- vue
28+
29+
group-1:
30+
<<: *defaults
31+
steps:
32+
- attach_workspace:
33+
at: ~/project
34+
- run: yarn test -p cli,cli-service,cli-shared-utils
35+
36+
group-2:
37+
<<: *defaults
38+
steps:
39+
- attach_workspace:
40+
at: ~/project
41+
- run: yarn test -p typescript
42+
43+
group-3:
44+
<<: *defaults
45+
steps:
46+
- attach_workspace:
47+
at: ~/project
48+
- run: yarn test -p cli-service-global,eslint,pwa,babel,babel-preset-app
49+
50+
group-4:
51+
<<: *defaults
52+
steps:
53+
- attach_workspace:
54+
at: ~/project
55+
- run: yarn test -p unit-mocha,unit-jest,e2e-nightwatch,e2e-cypress
2756

28-
# run tests!
29-
- run: yarn test
57+
workflows:
58+
version: 2
59+
test:
60+
jobs:
61+
- install
62+
- group-1:
63+
requires:
64+
- install
65+
- group-2:
66+
requires:
67+
- install
68+
- group-3:
69+
requires:
70+
- install
71+
- group-4:
72+
requires:
73+
- install

0 commit comments

Comments
 (0)