Update config.yml

This commit is contained in:
Geekix 2021-11-07 11:52:46 +01:00 committed by GitHub
parent 418a817b70
commit bd5fbd4cc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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