Skip to content

Commit 158f5b8

Browse files
committed
ci: Upgrade CircleCI config to version 2.1
1 parent 0be84c0 commit 158f5b8

File tree

2 files changed

+45
-41
lines changed

2 files changed

+45
-41
lines changed

.circleci/config.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
version: 2.1
2+
executors:
3+
node:
4+
docker:
5+
- image: circleci/node:10
6+
7+
commands:
8+
checkout_and_install_dependencies:
9+
description: "Checkout code and install dependencies from cache"
10+
steps:
11+
- checkout:
12+
name: Checkout code
13+
- restore_cache:
14+
name: Restore yarn package cache
15+
keys:
16+
- yarn-packages-{{ checksum "yarn.lock" }}
17+
- run:
18+
name: Install Meteor
19+
command: meteor || curl https://install.meteor.com | /bin/sh
20+
- run:
21+
name: Install dependencies
22+
command: yarn install --frozen-lockfile
23+
24+
jobs:
25+
lint_and_test:
26+
executor: node
27+
steps:
28+
- checkout_and_install_dependencies
29+
- run:
30+
name: Lint
31+
command: yarn lint
32+
- run:
33+
name: Run tests
34+
command: yarn test
35+
- save_cache:
36+
name: Save yarn package cache
37+
key: yarn-packages-{{ checksum "yarn.lock" }}
38+
paths:
39+
- ~/.cache/yarn
40+
41+
workflows:
42+
version: 2.1
43+
build_and_deploy:
44+
jobs:
45+
- lint_and_test

circle.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)