From 85f7ecfed2fe80ce5e2d25583a0a15d4ae2ed8dd Mon Sep 17 00:00:00 2001 From: Kamer DINC Date: Sun, 23 Jan 2022 00:31:44 +0300 Subject: [PATCH 1/2] Add .circleci/config.yml --- .circleci/config.yml | 49 +++++++++++++------------------------------- 1 file changed, 14 insertions(+), 35 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 875aee4..37edaac 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,42 +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 +# 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: - # The Node.js orb contains a set of prepackaged CircleCI configuration you can utilize - # Orbs reduce the amount of configuration required for common tasks. - # See the orb documentation here: https://circleci.com/developer/orbs/orb/circleci/node node: circleci/node@4.7 -jobs: - # Below is the definition of your job to build and test your app, you can rename and customize it as you want. - build-and-test: - # These next lines define a Docker executor: https://circleci.com/docs/2.0/executor-types/ - # You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. - # A list of available CircleCI Docker Convenience Images are available here: https://circleci.com/developer/images/image/cimg/node - docker: - - image: cimg/node:16.10 - # Then run your tests! - # CircleCI will report the results back to your VCS provider. - steps: - # Checkout the code as the first step. - - checkout - # Next, the node orb's install-packages step will install the dependencies from a package.json. - # The orb install-packages step will also automatically cache them for faster future runs. - - node/install-packages: - # If you are using yarn, change the line below from "npm" to "yarn" - pkg-manager: npm - - run: - name: Run tests - command: npm test - +# Invoke jobs via workflows +# See: https://circleci.com/docs/2.0/configuration-reference/#workflows 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 - sample: + 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: - - build-and-test - # For running simple node tests, you could optionally use the node/test job from the orb to replicate and replace the job above in fewer lines. - # - node/test + - 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 9fedb02e53f1a812c08a15f0dc218a5a9823dcf0 Mon Sep 17 00:00:00 2001 From: Kamer DINC Date: Sun, 23 Jan 2022 00:34:16 +0300 Subject: [PATCH 2/2] Add .circleci/config.yml --- .circleci/config.yml | 49 +++++++++++++++++++++++++++++++------------- 1 file changed, 35 insertions(+), 14 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 37edaac..875aee4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,21 +1,42 @@ -# This config is equivalent to both the '.circleci/extended/orb-free.yml' and the base '.circleci/config.yml' +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/2.0/configuration-reference 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: + # The Node.js orb contains a set of prepackaged CircleCI configuration you can utilize + # Orbs reduce the amount of configuration required for common tasks. + # See the orb documentation here: https://circleci.com/developer/orbs/orb/circleci/node 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' +jobs: + # Below is the definition of your job to build and test your app, you can rename and customize it as you want. + build-and-test: + # These next lines define a Docker executor: https://circleci.com/docs/2.0/executor-types/ + # You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. + # A list of available CircleCI Docker Convenience Images are available here: https://circleci.com/developer/images/image/cimg/node + docker: + - image: cimg/node:16.10 + # Then run your tests! + # CircleCI will report the results back to your VCS provider. + steps: + # Checkout the code as the first step. + - checkout + # Next, the node orb's install-packages step will install the dependencies from a package.json. + # The orb install-packages step will also automatically cache them for faster future runs. + - node/install-packages: # If you are using yarn, change the line below from "npm" to "yarn" pkg-manager: npm + - run: + name: Run tests + command: npm test + +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 + sample: + jobs: + - build-and-test + # For running simple node tests, you could optionally use the node/test job from the orb to replicate and replace the job above in fewer lines. + # - node/test