Skip to content

Commit

Permalink
Update config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ZyC0R3 committed Sep 9, 2019
1 parent 5086921 commit 5deac17
Showing 1 changed file with 30 additions and 13 deletions.
43 changes: 30 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,16 @@ jobs:
build-node-9:
docker:
# specify the version you desire here
# - image: circleci/node:9
# - image: circleci/node:12
- image: circleci/node:9.9.0
# - image: circleci/postgres

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4

working_directory: ~/repo

steps:
- checkout
- run: npm install

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- save_cache:
paths:
- node_modules
Expand All @@ -38,3 +25,33 @@ jobs:
# run tests!
- run: npm run lint
- run: npm run build
- run: echo "Node.js 9 Build Completed"
build-node-12:
docker:
# specify the version you desire here
- image: circleci/node:9.9.0
working_directory: ~/repo
steps:
- checkout
- run: npm install
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

# run tests!
- run: npm run lint
- run: npm run build
- run: echo "Node.js 9 Build Completed"

workflows:
version: 2
build:
jobs:
- build-node-9
- build-node-12

0 comments on commit 5deac17

Please sign in to comment.