recacheman
Version:
Small and efficient cache provider for Node.JS with In-memory, File, Redis and MongoDB engines
29 lines (26 loc) • 628 B
YAML
version: 2.1
workflows:
build:
jobs:
- build
jobs:
build:
docker:
- image: cimg/node:20.19.0 # Primary execution image
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Install npm
command: npm install
- save_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
paths:
- ./node_modules
- run:
name: Run Tests with Coverage
command: npm test
- store_artifacts:
path: coverage
prefix: coverage