From 1b934b2d3a683f774f4e179865e2b1e18b641a11 Mon Sep 17 00:00:00 2001 From: j0ey1 <71097373+j0ey1@users.noreply.github.com> Date: Mon, 13 Jun 2022 13:12:38 +0100 Subject: [PATCH 1/5] Add .circleci/config.yml --- .circleci/config.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..6554e1f4 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,26 @@ +# 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: + 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!" + +# Invoke jobs via workflows +# See: https://circleci.com/docs/2.0/configuration-reference/#workflows +workflows: + say-hello-workflow: + jobs: + - say-hello From a03959d49acf34df3be779ba9094609d468b183a Mon Sep 17 00:00:00 2001 From: j0ey1 <71097373+j0ey1@users.noreply.github.com> Date: Mon, 13 Jun 2022 13:14:04 +0100 Subject: [PATCH 2/5] Updated config.yml --- .circleci/config.yml | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6554e1f4..45ccba2d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,26 +1,24 @@ -# Use the latest 2.1 version of CircleCI pipeline process engine. -# See: https://circleci.com/docs/2.0/configuration-reference +# CircleCI configuration file 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 + # Job one with a unique name + say_hello: docker: - - image: cimg/base:stable - # Add steps to the job - # See: https://circleci.com/docs/2.0/configuration-reference/#steps + - image: cimg/base:2022.05 steps: - - checkout - - run: - name: "Say hello" - command: "echo Hello, World!" + - run: echo "Say hello to YAML!" + # Job two with a unique name + say_goodbye: + docker: + - image: cimg/base:2022.05 + steps: + - run: echo "Say goodbye to YAML!" -# Invoke jobs via workflows -# See: https://circleci.com/docs/2.0/configuration-reference/#workflows workflows: - say-hello-workflow: + # Name of workflow + hello_and_goodbye: + # List of jobs that will run jobs: - - say-hello + - say_hello + - say_goodbye From 0f832cd24cf7bbcf90ab9564d74483fc4162b963 Mon Sep 17 00:00:00 2001 From: j0ey1 <71097373+j0ey1@users.noreply.github.com> Date: Mon, 20 Jun 2022 02:08:55 +0100 Subject: [PATCH 3/5] Updated config.yml --- .circleci/config.yml | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 45ccba2d..7bde046e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,24 +1,34 @@ -# CircleCI configuration file version: 2.1 jobs: - # Job one with a unique name - say_hello: + build: docker: - - image: cimg/base:2022.05 + - image: circleci/node:13.8.0 steps: - - run: echo "Say hello to YAML!" - # Job two with a unique name - say_goodbye: + - checkout + - run: npm i + - run: npm run lint + test: docker: - - image: cimg/base:2022.05 + - image: circleci/node:13.8.0 steps: - - run: echo "Say goodbye to YAML!" + - checkout + - run: npm i + - run: npm run test + analyze: + docker: + - image: circleci/node:13.8.0 + steps: + - checkout + - run: npm audit workflows: - # Name of workflow - hello_and_goodbye: - # List of jobs that will run + my_workflow: jobs: - - say_hello - - say_goodbye + - build + - test: + requires: + - build + - analyze: + requires: + - test From fa609e4b759799692dd5d6b7e52725283a6b2262 Mon Sep 17 00:00:00 2001 From: j0ey1 <71097373+j0ey1@users.noreply.github.com> Date: Mon, 20 Jun 2022 03:46:13 +0100 Subject: [PATCH 4/5] Updated config.yml --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7bde046e..4745fbe8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,20 +7,20 @@ jobs: steps: - checkout - run: npm i - - run: npm run lint + - run: ng lint test: docker: - image: circleci/node:13.8.0 steps: - checkout - run: npm i - - run: npm run test + - run: ng test analyze: docker: - image: circleci/node:13.8.0 steps: - checkout - - run: npm audit + - run: ng audit workflows: my_workflow: From e63e866bdd32d1f2a469e5ec0147ae4c03678883 Mon Sep 17 00:00:00 2001 From: j0ey1 <71097373+j0ey1@users.noreply.github.com> Date: Mon, 20 Jun 2022 12:32:58 +0100 Subject: [PATCH 5/5] Updated config.yml --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4745fbe8..1639f182 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,20 +7,20 @@ jobs: steps: - checkout - run: npm i - - run: ng lint + - run: npm run lint test: docker: - image: circleci/node:13.8.0 steps: - checkout - run: npm i - - run: ng test + - run: npm run test analyze: docker: - image: circleci/node:13.8.0 steps: - checkout - - run: ng audit + - run: npm run audit workflows: my_workflow: