Skip to content

Commit

Permalink
Add circle-ci config file
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hill committed Jun 9, 2021
1 parent 3a4033b commit 14c58cc
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

version: 2.1

orbs:
node: circleci/node@4.1


jobs:
build-and-test:
# A list of available CircleCI Docker Convenience Images are available here: https://circleci.com/developer/images/image/cimg/node
docker:
- image: cimg/node:15.1

steps:
# Checkout the code as the first step.
- checkout
- node/install-packages
- run:
name: Run lint
command: npm run lint
- run:
name: Run tests
command: npm test
# persist code coverage report
- store_artifacts:
path: coverage


workflows:
# Below is the definition of your workflow.
# Inside the workflow, you provide the jobs you want to run, e.g this workflow runs the build-and-test job above.
# CircleCI will run this workflow on every commit.
# For more details on extending your workflow, see the configuration docs: https://circleci.com/docs/2.0/configuration-reference/#workflows
main:
jobs:
- build-and-test

0 comments on commit 14c58cc

Please sign in to comment.