Merge pull request #6752 from storybooks/6751-chromatic-to-circle-ci

Move chromatic to circle ci
This commit is contained in:
Michael Shilman 2019-05-09 21:13:10 +08:00 committed by GitHub
commit e635c89df0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 59 additions and 39 deletions

View File

@ -40,6 +40,15 @@ jobs:
- addons
- app
- lib
chromatic:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: .
- run:
name: Run chromatic on the pre-built storybook
command: yarn chromatic -- -d ./storybook-static
examples:
<<: *defaults
steps:
@ -125,6 +134,14 @@ jobs:
- store_artifacts:
path: examples/official-storybook/image-snapshots/__image_snapshots__
destination: official_storybook_image_snapshots
- persist_to_workspace:
root: .
paths:
- node_modules
- examples
- addons
- app
- lib
smoke-tests:
<<: *defaults
steps:
@ -347,3 +364,6 @@ workflows:
- cli-test-latest-cra:
requires:
- build
- chromatic:
requires:
- examples

View File

@ -26,10 +26,10 @@ object OpenSourceProjects_Storybook_Chromatic : BuildType({
scriptContent = """
#!/bin/sh
set -e -x
yarn
yarn chromatic
# set -e -x
# yarn
# yarn chromatic
echo "chromatic moved to cirlce CI"
""".trimIndent()
dockerImage = "node:%docker.node.version%"
}

View File

@ -36,7 +36,7 @@
"babel-plugin-module-resolver": "^3.2.0",
"babel-preset-expo": "^5.1.1",
"core-js": "^3.0.1",
"expo-cli": "^2.11.9",
"expo-cli": "^2.17.1",
"jest-expo": "^32.0.0",
"react-test-renderer": "16.5.1",
"schedule": "^0.4.0"

View File

@ -51,7 +51,7 @@
"prop-types": "^15.7.2",
"react": "^16.8.4",
"react-dom": "^16.8.4",
"storybook-chromatic": "^1.2.6",
"storybook-chromatic": "^1.3.3",
"ts-loader": "^5.3.3",
"uuid": "^3.3.2",
"webpack": "^4.28.0"

View File

@ -1585,22 +1585,22 @@
mv "~2"
safe-json-stringify "~1"
"@expo/config@^1.0.3":
version "1.0.3"
resolved "https://registry.yarnpkg.com/@expo/config/-/config-1.0.3.tgz#7e99eae02f103aa9e2c0597ebef9e509a84ceb7d"
integrity sha512-eTX0PedX+x9jjYUlc/dO9lwsLt01V7zDiDsS4n02GVY1X+dLGuq7NiZ3nfazJ3EBE45fJn3lGNydOdRGZFC6lQ==
"@expo/config@^1.0.4":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@expo/config/-/config-1.0.4.tgz#d615f4a24f617f42ba3664bf28bb0b381084335e"
integrity sha512-LcyOAWMRHnXmKs8q6J9ajmEdhJoqceHrA9wmNoOYcytJCM+iP0o+o3Z3t0JDGMRYppHBhnjRPmIB08TFyh+T9g==
dependencies:
"@expo/json-file" "^8.1.2"
fs-extra "^7.0.1"
resolve-from "^4.0.0"
slugify "^1.3.4"
"@expo/dev-tools@^0.5.8":
version "0.5.8"
resolved "https://registry.yarnpkg.com/@expo/dev-tools/-/dev-tools-0.5.8.tgz#370e6f55b924707745125cfed17c5feacf6d95ea"
integrity sha512-3K+OxvI+7exvpigqfJLIvxkF4PYe79YAEmDrwW6fFeZUTh0uwNDR29GVYE2kMzjiHIZY25eEWTqv0Yls4Es0Rg==
"@expo/dev-tools@^0.5.9":
version "0.5.9"
resolved "https://registry.yarnpkg.com/@expo/dev-tools/-/dev-tools-0.5.9.tgz#77047274eeba67208aeecb93c210fae00920c7ef"
integrity sha512-KXgZCBwt1oagNKCOM3dEz0zPP3ERZL/fLX3K+ohXlhCOAA++ayU5M/uR+08pMBknrfbBU8KX/pwUt1RJn629vA==
dependencies:
"@expo/config" "^1.0.3"
"@expo/config" "^1.0.4"
express "4.16.4"
freeport-async "1.1.1"
graphql "0.13.2"
@ -1757,16 +1757,16 @@
lodash "^4.17.4"
react-native-vector-icons "6.0.0"
"@expo/webpack-config@^0.5.4":
version "0.5.4"
resolved "https://registry.yarnpkg.com/@expo/webpack-config/-/webpack-config-0.5.4.tgz#4266db0383a5488e21e150313abd9fdbe7548a0d"
integrity sha512-dgyo9BbtsZ9LudoDlBfyh4WT857PfMRazl+iSTUGXzgdk550Q+0PgMKYxXNAyKFr0MYZVgDMw3gskioAVsaRDQ==
"@expo/webpack-config@^0.5.5":
version "0.5.5"
resolved "https://registry.yarnpkg.com/@expo/webpack-config/-/webpack-config-0.5.5.tgz#35f18e2b237fbbc7cf1b704a9dc98a7b37121434"
integrity sha512-o2BsmCB42nabMSQJtju30ASJmQd3m7cgeR9dYzvW7Mu3g3FuIG68MfxA2MWYGs6jOsiDssg80dxLFij35WAdFg==
dependencies:
"@babel/core" "^7.0.0"
"@babel/polyfill" "^7.2.5"
"@babel/runtime" "^7.3.4"
"@expo/config" "^1.0.3"
"@expo/webpack-pwa-manifest-plugin" "^1.0.3"
"@expo/config" "^1.0.4"
"@expo/webpack-pwa-manifest-plugin" "^1.0.4"
babel-loader "^8.0.5"
babel-preset-expo "^5.1.1"
brotli-webpack-plugin "^1.1.0"
@ -1797,10 +1797,10 @@
webpack-merge "^4.2.1"
workbox-webpack-plugin "^3.6.3"
"@expo/webpack-pwa-manifest-plugin@^1.0.3":
version "1.0.3"
resolved "https://registry.yarnpkg.com/@expo/webpack-pwa-manifest-plugin/-/webpack-pwa-manifest-plugin-1.0.3.tgz#2bdce89bcc5fac06ae480bd7bb93c3c527ef8ae8"
integrity sha512-pXK8oLnAE18tEAQykgPsLdghqvvbAvRMKBlsAs3eoUG96OJBRmr/0O1R4n7x/QaxdRdnMAmu660dJ4zjA3wYuA==
"@expo/webpack-pwa-manifest-plugin@^1.0.4":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@expo/webpack-pwa-manifest-plugin/-/webpack-pwa-manifest-plugin-1.0.4.tgz#ddec2b4402024169050ae41c83d94ed905855168"
integrity sha512-pU6tTvaX0JJVO3IdLO18R6a+/lTd92wkqunxMU1Qbks6Qy8bgXDyECbHetIfXrPQjYkcew55AYRRbjkNRiV4gg==
dependencies:
css-color-names "^1.0.1"
dot-object "^1.7.1"
@ -12005,14 +12005,14 @@ expo-camera@~2.0.0:
lodash.mapvalues "^4.6.0"
prop-types "^15.6.0"
expo-cli@^2.11.9:
version "2.17.0"
resolved "https://registry.yarnpkg.com/expo-cli/-/expo-cli-2.17.0.tgz#f3e7e03ac739759eb3b47db6b8b4530296d6d37a"
integrity sha512-uZTZIMfZpRGMwDEAWvHZcC2kha9bVgzYQhcXbt4mR7Uq9byb74C3kS/W+gu/MOFV26viwvvUgDqDiY3Esb0eCA==
expo-cli@^2.17.1:
version "2.17.1"
resolved "https://registry.yarnpkg.com/expo-cli/-/expo-cli-2.17.1.tgz#d00614d5e839e45270f93692dc37c09a71c73e25"
integrity sha512-TFQAEZMdpNn7fAbmRFHCwPU4buPSL1yaFxxC+N81Qhbc/yS7ONJSHmft09Wgq2o1lPO/boVSfNjYtVo6B13vTA==
dependencies:
"@expo/bunyan" "3.0.2"
"@expo/config" "^1.0.3"
"@expo/dev-tools" "^0.5.8"
"@expo/config" "^1.0.4"
"@expo/dev-tools" "^0.5.9"
"@expo/json-file" "^8.1.2"
"@expo/simple-spinner" "1.0.2"
"@expo/spawn-async" "1.4.2"
@ -12049,7 +12049,7 @@ expo-cli@^2.11.9:
untildify "3.0.3"
validator "10.5.0"
wordwrap "1.0.0"
xdl "^53.7.0"
xdl "^53.7.1"
optionalDependencies:
"@expo/traveling-fastlane-darwin" "1.9.3"
"@expo/traveling-fastlane-linux" "1.9.3"
@ -26883,7 +26883,7 @@ store2@^2.7.1:
resolved "https://registry.yarnpkg.com/store2/-/store2-2.7.1.tgz#22070b7dc04748a792fc6912a58ab99d3a21d788"
integrity sha512-zzzP5ZY6QWumnAFV6kBRbS44pUMcpZBNER5DWUe1HETlaKXqLcCQxbNu6IHaKr1pUsjuhUGBdOy8sWKmMkL6pQ==
storybook-chromatic@^1.2.6:
storybook-chromatic@^1.3.3:
version "1.3.3"
resolved "https://registry.yarnpkg.com/storybook-chromatic/-/storybook-chromatic-1.3.3.tgz#4ea0ff8dfc7e196243e045c3cd0d1e19086b3587"
integrity sha512-Ub92mvOfuPWOUUvS4Q3+mVCuWgbnWQAq4hxtLfg39vNDm7d14R/nLLCKgRI7KglATrL0+t4g1x0MNa3nCcN4fA==
@ -30224,19 +30224,19 @@ xdg-basedir@^3.0.0:
resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-3.0.0.tgz#496b2cc109eca8dbacfe2dc72b603c17c5870ad4"
integrity sha1-SWsswQnsqNus/i3HK2A8F8WHCtQ=
xdl@^53.7.0:
version "53.7.0"
resolved "https://registry.yarnpkg.com/xdl/-/xdl-53.7.0.tgz#9a3b9247924f446917c4899c97bb79b364637c76"
integrity sha512-Qhraiij5gn2oGJ0cyOwc2BPLmdLA9OtSJjLPWghVX5zK/Oi7f3dtDoLxO2FBQVTDpLadesIs7MzepirALeXRzw==
xdl@^53.7.1:
version "53.7.1"
resolved "https://registry.yarnpkg.com/xdl/-/xdl-53.7.1.tgz#b50ab24761dbda2af0892c244ff3095d99840fcc"
integrity sha512-0EPhF+G7YjyuWxrz56mo4aI+UXPJj0gDneol9BwQQHfwv5QTzVWDqp0AljNV1Dmm30lUV4Q8WR1+YVQ5GuC/+g==
dependencies:
"@expo/bunyan" "3.0.2"
"@expo/config" "^1.0.3"
"@expo/config" "^1.0.4"
"@expo/json-file" "^8.1.2"
"@expo/ngrok" "2.4.3"
"@expo/osascript" "^1.9.2"
"@expo/schemer" "^1.2.4"
"@expo/spawn-async" "1.4.2"
"@expo/webpack-config" "^0.5.4"
"@expo/webpack-config" "^0.5.5"
analytics-node "^2.1.0"
axios v0.19.0-beta.1
chalk "2.4.1"