mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 12:41:06 +08:00
Merge pull request #12118 from PK1312/patch-3
Updating and optimizing circleCI Config
This commit is contained in:
commit
f2a1fc5967
@ -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:
|
||||
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user