Skip to content

Instantly share code, notes, and snippets.

@alirezabonab
Created January 3, 2021 20:27
Show Gist options
  • Save alirezabonab/b6081690c19bff1efff0e8d64b30efd1 to your computer and use it in GitHub Desktop.
Save alirezabonab/b6081690c19bff1efff0e8d64b30efd1 to your computer and use it in GitHub Desktop.
jobs:
test:
<<: *defaults
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: npm install
- run:
name: Run tests
command: npm test
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- persist_to_workspace:
root: ~/repo
paths:
- .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment