From 07bed05eae65af173258bd4c5bc1774ab723292f Mon Sep 17 00:00:00 2001 From: sdbhaskara <102450266+sdbhaskara@users.noreply.github.com> Date: Sun, 27 Mar 2022 09:15:49 -0700 Subject: [PATCH 1/5] Add .circleci/config.yml --- .circleci/config.yml | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 857f466a..6554e1f4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,14 +1,26 @@ -version: 2 +# 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: - build: - docker: # tircleci/node:10.0.0 # the primary container, where your job's commands are run - - image: circleci/node:10.0.0 # run in the background + say-hello: + # 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/base:stable + # Add steps to the job + # See: https://circleci.com/docs/2.0/configuration-reference/#steps steps: - - checkout # check out the code in the project directory - - run: npm install - - run: npm start & - - run: npm test - - deploy: - name: digital-ocean - command: ssh -o "StrictHostKeyChecking no" root@167.71.166.254"cd ~/circleciexpress; git pull; npm install; npm start &" - \ No newline at end of file + - checkout + - run: + name: "Say hello" + command: "echo Hello, World!" + +# Invoke jobs via workflows +# See: https://circleci.com/docs/2.0/configuration-reference/#workflows +workflows: + say-hello-workflow: + jobs: + - say-hello From 180195a418cb325d3720da1cdd594ee9c4477362 Mon Sep 17 00:00:00 2001 From: sdbhaskara <102450266+sdbhaskara@users.noreply.github.com> Date: Sun, 27 Mar 2022 09:17:05 -0700 Subject: [PATCH 2/5] Add .circleci/config.yml From f124e35f8640553a480d3a0313f946540b98e6ea Mon Sep 17 00:00:00 2001 From: sdbhaskara <102450266+sdbhaskara@users.noreply.github.com> Date: Sun, 27 Mar 2022 09:19:57 -0700 Subject: [PATCH 3/5] Add .circleci/config.yml --- .circleci/config.yml | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6554e1f4..37edaacb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,26 +1,21 @@ -# Use the latest 2.1 version of CircleCI pipeline process engine. -# See: https://circleci.com/docs/2.0/configuration-reference +# This config is equivalent to both the '.circleci/extended/orb-free.yml' and the base '.circleci/config.yml' version: 2.1 -# Define a job to be invoked later in a workflow. -# See: https://circleci.com/docs/2.0/configuration-reference/#jobs -jobs: - say-hello: - # 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/base:stable - # Add steps to the job - # See: https://circleci.com/docs/2.0/configuration-reference/#steps - steps: - - checkout - - run: - name: "Say hello" - command: "echo Hello, World!" +# 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: - say-hello-workflow: + 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: - - say-hello + - 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 From 3d5e9bbda71d909651ceb9f89df1772ad791c7d9 Mon Sep 17 00:00:00 2001 From: srmb Date: Sun, 27 Mar 2022 10:18:01 -0700 Subject: [PATCH 4/5] Update yml file --- .circleci/config.yml | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 37edaacb..5b8f1a37 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,21 +1,7 @@ -# 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 + node: circleci/node@3.0.0 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 + node-tests: + jobs: + - node/test \ No newline at end of file From 2b84976a1b37a18be8249773a1c5d4bf715ab14c Mon Sep 17 00:00:00 2001 From: sdbhaskara <102450266+sdbhaskara@users.noreply.github.com> Date: Sun, 27 Mar 2022 10:41:35 -0700 Subject: [PATCH 5/5] Updated config.yml --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5b8f1a37..fa499f2c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,5 +3,5 @@ orbs: node: circleci/node@3.0.0 workflows: node-tests: - jobs: - - node/test \ No newline at end of file + jobs: + - node/test \ No newline at end of file