diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..37edaac --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,21 @@ +# This config is equivalent to both the '.circleci/extended/orb-free.yml' and the base '.circleci/config.yml' +version: 2.1 + +# Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects. +# See: https://circleci.com/docs/2.0/orb-intro/ +orbs: + node: circleci/node@4.7 + +# Invoke jobs via workflows +# See: https://circleci.com/docs/2.0/configuration-reference/#workflows +workflows: + sample: # This is the name of the workflow, feel free to change it to better match your workflow. + # Inside the workflow, you define the jobs you want to run. + jobs: + - node/test: + # This is the node version to use for the `cimg/node` tag + # Relevant tags can be found on the CircleCI Developer Hub + # https://circleci.com/developer/images/image/cimg/node + version: '16.10' + # If you are using yarn, change the line below from "npm" to "yarn" + pkg-manager: npm diff --git a/README.md b/README.md index 89308fe..4d960e9 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,10 @@ Great for testing simple deployments to the cloud ## Run It `npm start` +#he bhagwan ### Ports Used: `http://localhost:3000 -http://localhost:3001` \ No newline at end of file +http://localhost:3001` + + diff --git a/node-hello.yml b/node-hello.yml new file mode 100644 index 0000000..90dfc8a --- /dev/null +++ b/node-hello.yml @@ -0,0 +1,35 @@ +resources: +- name: repo + type: git + source: + uri: https://github.com/NaincyKumariKnoldus/node-hello + branch: main + +- name: node-hello + type: registry-image-resource + source: + repository: node + tag: 13.10.1-stretch +jobs: +- name: test + plan: + - get: repo + - get: node-hello + trigger: true + - task: install + image: node-hello + config: + inputs: + - name: repo + outputs: + - name: dependencies + path: repo/node_modules + platform: linux + run: + path: /bin/bash + args: + - -ec + - | + cd repo + npm install + npm pack