Skip to content

Commit cbff7a2

Browse files
committed
ci: remove yaml aliases (dont allow to combine arrays)
1 parent 23041bb commit cbff7a2

File tree

1 file changed

+27
-11
lines changed

1 file changed

+27
-11
lines changed

.circleci/config.yml

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
version: 2
22

3-
aliases:
4-
- dependencies: &dependencies
3+
jobs:
4+
Tests under Node.js 8:
5+
docker:
6+
- image: circleci/node:8
7+
steps:
58
- checkout
69
- run: node --version > node_version
710
- restore_cache:
@@ -12,26 +15,39 @@ aliases:
1215
key: yarn-packages-{{ checksum "node_version" }}-{{ checksum "yarn.lock" }}
1316
paths:
1417
- ~/.cache/yarn
15-
16-
jobs:
17-
Tests under Node.js 8:
18-
docker:
19-
- image: circleci/node:8
20-
steps:
21-
- *dependencies
2218
- run: yarn coverage
19+
2320
Tests under Node.js 10:
2421
docker:
2522
- image: circleci/node:10
2623
steps:
27-
- *dependencies
24+
- checkout
25+
- run: node --version > node_version
26+
- restore_cache:
27+
keys:
28+
- yarn-packages-{{ checksum "node_version" }}-{{ checksum "yarn.lock" }}
29+
- run: yarn install --frozen-lockfile
30+
- save_cache:
31+
key: yarn-packages-{{ checksum "node_version" }}-{{ checksum "yarn.lock" }}
32+
paths:
33+
- ~/.cache/yarn
2834
- run: yarn coverage
2935
- run: curl -s https://codecov.io/bash | bash
36+
3037
Release:
3138
docker:
3239
- image: circleci/node:10
3340
steps:
34-
- *dependencies
41+
- checkout
42+
- run: node --version > node_version
43+
- restore_cache:
44+
keys:
45+
- yarn-packages-{{ checksum "node_version" }}-{{ checksum "yarn.lock" }}
46+
- run: yarn install --frozen-lockfile
47+
- save_cache:
48+
key: yarn-packages-{{ checksum "node_version" }}-{{ checksum "yarn.lock" }}
49+
paths:
50+
- ~/.cache/yarn
3551
- run:
3652
command: |
3753
git config --global user.email [email protected]

0 commit comments

Comments
 (0)