diff --git a/.circleci/config.yml b/.circleci/config.yml index 96b43e811e3b..ecc806e4a94e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,14 +1,21 @@ version: 2.1 -aliases: - - &defaults +executors: + sb_node: + parameters: + class: + description: The Resource class + type: enum + enum: ["small", "medium", "large", "xlarge"] + default: "medium" working_directory: /tmp/storybook docker: - image: circleci/node:10-browsers + resource_class: <> jobs: install: - <<: *defaults + executor: sb_node steps: - checkout - restore_cache: @@ -37,7 +44,7 @@ jobs: - app - lib build: - <<: *defaults + executor: sb_node steps: - checkout - attach_workspace: @@ -54,7 +61,7 @@ jobs: - app - lib chromatic: - <<: *defaults + executor: sb_node parallelism: 11 steps: - checkout @@ -65,7 +72,7 @@ jobs: command: | yarn run-chromatics packtracker: - <<: *defaults + executor: sb_node steps: - checkout - attach_workspace: @@ -76,7 +83,7 @@ jobs: cd examples/official-storybook yarn packtracker examples: - <<: *defaults + executor: sb_node parallelism: 11 steps: - checkout @@ -91,7 +98,7 @@ jobs: paths: - built-storybooks publish: - <<: *defaults + executor: sb_node steps: - checkout - attach_workspace: @@ -188,7 +195,7 @@ jobs: destination: cypress smoke-tests: - <<: *defaults + executor: sb_node steps: - checkout - attach_workspace: @@ -254,7 +261,7 @@ jobs: cd examples/cra-react15 yarn storybook --smoke-test --quiet frontpage: - <<: *defaults + executor: sb_node steps: - checkout - restore_cache: @@ -268,7 +275,9 @@ jobs: name: Trigger build command: ./scripts/build-frontpage.js lint: - <<: *defaults + executor: + class: small + name: sb_node steps: - checkout - attach_workspace: @@ -277,7 +286,7 @@ jobs: name: Lint command: yarn lint test: - <<: *defaults + executor: sb_node steps: - checkout - attach_workspace: @@ -290,7 +299,9 @@ jobs: paths: - coverage coverage: - <<: *defaults + executor: + class: small + name: sb_node steps: - checkout - attach_workspace: