Skip to content

Commit f4c9b95

Browse files
committed
🔧 config: update circle ci configration
1 parent 71a9640 commit f4c9b95

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

.circleci/config.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#
33
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
44
#
5-
version: 2
6-
jobs:
7-
build:
5+
version: 2.1
6+
executors:
7+
default:
88
docker:
99
# specify the version you desire here
1010
- image: circleci/node:8.10
@@ -15,7 +15,11 @@ jobs:
1515
# - image: circleci/mongo:3.4.4
1616

1717
working_directory: ~/repo
18-
18+
orbs:
19+
codecov: codecov/[email protected]
20+
jobs:
21+
build:
22+
executor: default
1923
steps:
2024
- checkout
2125

@@ -26,12 +30,19 @@ jobs:
2630
# fallback to using the latest cache if no exact match is found
2731
- v1-dependencies-
2832

29-
- run: yarn install
33+
- run:
34+
name: Install Dependencies
35+
command: yarn install --frozen-lockfile
3036

3137
- save_cache:
38+
name: Save Yarn Package Cache
39+
key: yarn-packages-{{ checksum "yarn.lock" }}
3240
paths:
33-
- node_modules
34-
key: v1-dependencies-{{ checksum "package.json" }}
41+
- ~/.cache/yarn
3542

3643
# run tests!
37-
- run: yarn test
44+
- run: yarn lint
45+
- run: yarn test
46+
47+
- codecov/upload:
48+
file: ./coverage/lcov.info

0 commit comments

Comments
 (0)