.circleci/config.yml
version: 2
jobs:
build:
branches:
ignore:
- gh-pages
docker:
- image: cimg/node:16.15.1
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-
# Install dependencies
- run: yarn install
# Save cache artifacts
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
# Run unit tests!
- run:
name: run tests
command: yarn run test:unit