Skip to content

Commit

Permalink
update CircleCI config
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Jan 22, 2021
1 parent b418f50 commit ee3d1c4
Showing 1 changed file with 27 additions and 11 deletions.
38 changes: 27 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,38 @@
version: 2
jobs:
build:
working_directory: ~/repo
docker:
- image: circleci/node:latest
version: 2.1

commands:
run-test:
steps:
- checkout
- restore_cache:
name: Restore npm Package Data Cache
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Install Node dependencies
name: Installing Dependencies
command: npm ci
- save_cache:
name: Cache npm Package Data
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
name: Run Tests
command: npm run test
name: Running Tests
command: npm test

jobs:
node-latest:
docker:
- image: circleci/node:latest
steps:
- run-test

node-lts:
docker:
- image: circleci/node:lts
steps:
- run-test

workflows:
node-run-tests:
jobs:
- node-latest
- node-lts
version: 2

0 comments on commit ee3d1c4

Please sign in to comment.