1
0
Fork 0
faetale/.circleci/config.yml
2021-12-24 22:14:52 -06:00

40 lines
691 B
YAML

version: 2
jobs:
ci:
docker:
- image: cimg/node:lts
steps:
- checkout
- restore_cache:
keys:
- node-v1-{{ checksum "package-lock.json" }}
- run:
name: Install dependencies
command: npm ci
- save_cache:
key: node-v1-{{ checksum "package-lock.json" }}
paths:
- ~/.npm
- run:
name: Run linter
command: npm run lint
- run:
name: Run tests
command: npm run test
workflows:
version: 2
ci:
jobs:
- ci:
filters:
branches:
only:
- main
- master