Skip to content

Commit

Permalink
Merge pull request #9 from cam8001/circleci-project-setup
Browse files Browse the repository at this point in the history
Circleci project setup
  • Loading branch information
cam8001 committed Apr 3, 2022
2 parents bcfb831 + 28faaad commit 82b30f9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1

# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
jobs:
npm-tests:
# Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
# See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor
docker:
- image: cimg/node:17.8.0
# Add steps to the job
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
steps:
- checkout
- run: |
rm -rf ./node_modules package-lock.json
npm install
export PATH="./node_modules/.bin:$PATH";
npm run coverage
nyc npm test && nyc report --reporter=text-lcov | ./node_modules/.bin/coveralls
# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
workflows:
unit-tests-workflow:
jobs:
- npm-tests

0 comments on commit 82b30f9

Please sign in to comment.