sao-nm
Version:
Scaffolding out a node module.
29 lines (28 loc) • 765 B
YAML
version: 2
jobs:
build:
docker:
- image: circleci/node:latest
branches:
ignore:
- gh-pages # list of branches to ignore
- /release\/.*/ # or ignore regexes
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
- run:
name: install dependences
command: yarn
- save_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
paths:
- ./node_modules
- run:
name: test
command: yarn <% if (coverage) { %>test:cov<% } else { %>test<% } %>
<%_ if (coverage) { -%>
- run:
name: upload coverage
command: bash <(curl -s https://codecov.io/bash)
<%_ } -%>