Skip to content

Commit

Permalink
build: try workflows for multiple version builds
Browse files Browse the repository at this point in the history
  • Loading branch information
lance committed Mar 27, 2019
1 parent e066cfd commit 5e9e6c8
Showing 1 changed file with 26 additions and 44 deletions.
70 changes: 26 additions & 44 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,63 +2,45 @@
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2.1
jobs:
node8:
docker:
- image: circleci/node:8
version: 2

working_directory: ~/repo
build-common: &common-build
working_directory: ~/repo

steps:
- checkout
steps:
- checkout

# 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-
# 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-

- run: yarn install
- run: npm install

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

# run tests!
- run: make ci
# run tests!
- run: make ci

jobs:
node8:
docker:
- image: circleci/node:8
<<: *common-build

node10:
docker:
- image: circleci/node:10

working_directory: ~/repo

steps:
- checkout

# 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-

- run: yarn install

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

# run tests!
- run: make ci
<<: *common-build

workflows:
version: 2
test_all_versions:
node8:
jobs:
- node8
- node10

0 comments on commit 5e9e6c8

Please sign in to comment.