Update config.yml
This commit is contained in:
parent
418a817b70
commit
bd5fbd4cc6
@ -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
|
version: 2.1
|
||||||
|
|
||||||
# Define a job to be invoked later in a workflow.
|
orbs:
|
||||||
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
|
ruby: circleci/ruby@1.1.0
|
||||||
|
node: circleci/node@2
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
say-hello:
|
build:
|
||||||
# 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:
|
docker:
|
||||||
- image: cimg/base:stable
|
- image: cimg/ruby:2.7-node
|
||||||
# Add steps to the job
|
steps:
|
||||||
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
|
- checkout
|
||||||
|
test:
|
||||||
|
docker:
|
||||||
|
- image: cimg/ruby:2.7-node
|
||||||
|
environment:
|
||||||
|
BUNDLE_RETRY: "3"
|
||||||
|
RAILS_ENV: test
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
name: "Say hello"
|
name: test
|
||||||
command: "echo Hello, World!"
|
command: bundle exec rake validate lint
|
||||||
|
|
||||||
# Invoke jobs via workflows
|
|
||||||
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
|
|
||||||
workflows:
|
workflows:
|
||||||
say-hello-workflow:
|
version: 2
|
||||||
|
build_and_test:
|
||||||
jobs:
|
jobs:
|
||||||
- say-hello
|
- build
|
||||||
|
- test:
|
||||||
|
requires:
|
||||||
|
- build
|
||||||
|
Loading…
Reference in New Issue
Block a user