UNPKG

971 BYAMLView Raw
1version: 2
2jobs:
3 build_and_test:
4 working_directory: ~/babel-cli
5 docker:
6 - image: node:10-jessie
7 steps:
8 - checkout
9 - restore_cache:
10 name: Restore NPM Package Cache
11 keys:
12 - npm-packages-{{ .Branch }}-{{ checksum "package-lock.json" }}
13 - npm-packages-{{ .Branch }}
14 - npm-packages-master
15 - npm-packages-
16 - run:
17 name: Packager Version
18 command: npm --version
19 - run:
20 name: Install Dependencies
21 command: npm install
22 - save_cache:
23 name: Save NPM Package Cache
24 key: npm-packages-{{ .Branch }}-{{ checksum "package-lock.json" }}
25 paths:
26 - node_modules/
27 - run:
28 name: Compile sources
29 command: npm run prepare
30 - run:
31 name: Lint sources
32 command: npm run lint
33
34workflows:
35 version: 2
36 build_and_test:
37 jobs:
38 - build_and_test