From bd5fbd4cc66a50032f0b88f8734a8898a01c5fe3 Mon Sep 17 00:00:00 2001 From: Geekix Date: Sun, 7 Nov 2021 11:52:46 +0100 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6554e1f..d2e4474 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,26 +1,31 @@ -# 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 +orbs: + ruby: circleci/ruby@1.1.0 + node: circleci/node@2 + 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 + build: docker: - - image: cimg/base:stable - # Add steps to the job - # See: https://circleci.com/docs/2.0/configuration-reference/#steps + - image: cimg/ruby:2.7-node + steps: + - checkout + test: + docker: + - image: cimg/ruby:2.7-node + environment: + BUNDLE_RETRY: "3" + RAILS_ENV: test steps: - checkout - run: - name: "Say hello" - command: "echo Hello, World!" - -# Invoke jobs via workflows -# See: https://circleci.com/docs/2.0/configuration-reference/#workflows + name: test + command: bundle exec rake validate lint workflows: - say-hello-workflow: + version: 2 + build_and_test: jobs: - - say-hello + - build + - test: + requires: + - build