diff --git a/.circleci/config.yml b/.circleci/config.yml index 0783de3..6554e1f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,47 +1,26 @@ -parameters: - spec-root: - type: string - default: "./specs/" - - +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/2.0/configuration-reference version: 2.1 -orbs: - tools: circleci/node@volatile - spectacle: - executors: - default: - docker: - - image: sourcey/spectacle - commands: - build-docs: - parameters: - file: - type: string - description: "local path to the openAPI json" - save-artifact: - type: boolean - default: true - publish-dir: - type: string - default: "~/spectacle/" - steps: - - run: spectacle -t <> << parameters.file >> - - when: - condition: << parameters.save-artifact >> - steps: - store_artifacts: - path: << parameters.publish-dir >> +# Define a job to be invoked later in a workflow. +# See: https://circleci.com/docs/2.0/configuration-reference/#jobs jobs: - generate-docs: - executor: spectacle/default + 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: curl -o circleci-openapi.json https://circleci.com/api/v2/openapi.json - - spectacle/build-docs: - file: circleci-openapi.json + - run: + name: "Say hello" + command: "echo Hello, World!" + +# Invoke jobs via workflows +# See: https://circleci.com/docs/2.0/configuration-reference/#workflows workflows: - main: + say-hello-workflow: jobs: - - generate-docs - + - say-hello