Skip to content

Instantly share code, notes, and snippets.

@rxgx
Created October 30, 2019 06:07
Show Gist options
  • Save rxgx/7031e1e622e6438f8ec8c1d7403089e6 to your computer and use it in GitHub Desktop.
Save rxgx/7031e1e622e6438f8ec8c1d7403089e6 to your computer and use it in GitHub Desktop.
CircleCI config for json-calendar
version: 2.1
orbs:
codecov: codecov/[email protected]
executors:
nodejs:
docker:
- image: circleci/node:10.16
working_directory: ~/json-calendar
commands:
npm_install:
steps:
- checkout
- run: npm ci --no-progress
- persist_to_workspace:
root: .
paths: .
npm_lint:
steps:
- attach_workspace:
at: .
- run: npm run lint
npm_test:
steps:
- attach_workspace:
at: .
- run: npm t
- codecov/upload:
file: coverage/*.json
jobs:
dependencies:
executor: nodejs
steps:
- npm_install
lint:
executor: nodejs
steps:
- npm_lint
test:
executor: nodejs
steps:
- npm_test
workflows:
version: 2
default:
jobs:
- dependencies
- lint:
requires:
- dependencies
- test:
requires:
- lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment