generated from vidhill/npm-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Hill
committed
Jun 9, 2021
1 parent
3a4033b
commit 14c58cc
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |