Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating and optimizing circleCI Config #12118

Merged
merged 1 commit into from
Aug 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 24 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -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: <<parameters.class>>

jobs:
install:
<<: *defaults
executor: sb_node
steps:
- checkout
- restore_cache:
Expand Down Expand Up @@ -37,7 +44,7 @@ jobs:
- app
- lib
build:
<<: *defaults
executor: sb_node
steps:
- checkout
- attach_workspace:
Expand All @@ -54,7 +61,7 @@ jobs:
- app
- lib
chromatic:
<<: *defaults
executor: sb_node
parallelism: 11
steps:
- checkout
Expand All @@ -65,7 +72,7 @@ jobs:
command: |
yarn run-chromatics
packtracker:
<<: *defaults
executor: sb_node
steps:
- checkout
- attach_workspace:
Expand All @@ -76,7 +83,7 @@ jobs:
cd examples/official-storybook
yarn packtracker
examples:
<<: *defaults
executor: sb_node
parallelism: 11
steps:
- checkout
Expand All @@ -91,7 +98,7 @@ jobs:
paths:
- built-storybooks
publish:
<<: *defaults
executor: sb_node
steps:
- checkout
- attach_workspace:
Expand Down Expand Up @@ -188,7 +195,7 @@ jobs:
destination: cypress

smoke-tests:
<<: *defaults
executor: sb_node
steps:
- checkout
- attach_workspace:
Expand Down Expand Up @@ -254,7 +261,7 @@ jobs:
cd examples/cra-react15
yarn storybook --smoke-test --quiet
frontpage:
<<: *defaults
executor: sb_node
steps:
- checkout
- restore_cache:
Expand All @@ -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:
Expand All @@ -277,7 +286,7 @@ jobs:
name: Lint
command: yarn lint
test:
<<: *defaults
executor: sb_node
steps:
- checkout
- attach_workspace:
Expand All @@ -290,7 +299,9 @@ jobs:
paths:
- coverage
coverage:
<<: *defaults
executor:
class: small
name: sb_node
steps:
- checkout
- attach_workspace:
Expand Down