Skip to content

Commit

Permalink
Swap node 10 for 14
Browse files Browse the repository at this point in the history
  • Loading branch information
Fletcher91 committed Jun 16, 2021
1 parent deceb0f commit 6ae591b
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,75 +19,77 @@ jobs:
paths:
- cc-test-reporter

build-node-13:
build-node-14:
<<: *defaults
docker:
- image: circleci/node:13
- image: circleci/node:14
steps:
- checkout
- attach_workspace:
at: ~/link-lib/tmp
- restore_cache:
keys:
- v1-dependencies-13-{{ checksum "package.json" }}
- v1-dependencies-14-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-13-
- v1-dependencies-14-

- run: yarn install

- save_cache:
paths:
- node_modules
key: v1-dependencies-13-{{ checksum "package.json" }}
key: v1-dependencies-14-{{ checksum "package.json" }}
- run: yarn lint
- run: yarn test -w 1
- run: ./tmp/cc-test-reporter format-coverage -t lcov -o ~/link-lib/tmp/codeclimate.node-13.json coverage/lcov.info
- run: ./tmp/cc-test-reporter format-coverage -t lcov -o ~/link-lib/tmp/codeclimate.node-14.json coverage/lcov.info
- run: yarn build
- persist_to_workspace:
root: tmp
paths:
- codeclimate.node-13.json
- codeclimate.node-14.json

build-node-12:
build-node-13:
<<: *defaults
docker:
- image: circleci/node:12
- image: circleci/node:13
steps:
- checkout
- attach_workspace:
at: ~/link-lib/tmp
- restore_cache:
keys:
- v1-dependencies-12-{{ checksum "package.json" }}
- v1-dependencies-13-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-12-
- v1-dependencies-13-

- run: yarn install

- save_cache:
paths:
- node_modules
key: v1-dependencies-12-{{ checksum "package.json" }}
key: v1-dependencies-13-{{ checksum "package.json" }}
- run: yarn lint
- run: yarn test -w 1
- run: yarn build

build-node-10:
build-node-12:
<<: *defaults
docker:
- image: circleci/node:10
- image: circleci/node:12
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-10-{{ checksum "package.json" }}
- v1-dependencies-12-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-10-
- v1-dependencies-12-

- run: yarn install

- save_cache:
paths:
- node_modules
key: v1-dependencies-10-{{ checksum "package.json" }}
key: v1-dependencies-12-{{ checksum "package.json" }}
- run: yarn lint
- run: yarn test -w 1
- run: yarn build
Expand All @@ -110,11 +112,11 @@ workflows:
commit:
jobs:
- build
- build-node-13:
- build-node-14:
requires:
- build
- build-node-13
- build-node-12
- build-node-10
- upload-coverage:
requires:
- build-node-13
- build-node-14

0 comments on commit 6ae591b

Please sign in to comment.