From 1a82c7fea9923ad02f85275d4e1e6f42c226fc79 Mon Sep 17 00:00:00 2001 From: nancy-echefu <101115368+nancy-echefu@users.noreply.github.com> Date: Sat, 30 Apr 2022 17:26:45 +0100 Subject: [PATCH 1/2] Create 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 0000000..94a8ad3 --- /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: circleci/ruby:2.4.1-node-browsers + # 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 e162c4791b0622474ff5508f447776f7aa586c0a Mon Sep 17 00:00:00 2001 From: nancy-echefu <101115368+nancy-echefu@users.noreply.github.com> Date: Sat, 30 Apr 2022 18:16:19 +0100 Subject: [PATCH 2/2] Add validations --- .circleci/config.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 94a8ad3..7316fcc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,9 +14,12 @@ jobs: # See: https://circleci.com/docs/2.0/configuration-reference/#steps steps: - checkout + - run: + name: build dependencies + command: bundle install - run: - name: "Say hello" - command: "echo Hello, World!" + name: build the jekyll site + command: bundle exec jekyll build # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows