mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
ci - run storybook and add to build-artifacts (#10360)
* ci - run storybook and add to build-artifacts * ci/storybook - rename storybook build path and fix artifact upload * ci/storybook - rename link text * clean - remove accidently committed storybook build dir * storybook - fix image path to relative (#10364)
This commit is contained in:
parent
b52d82ac27
commit
efd280172f
@ -90,6 +90,7 @@ workflows:
|
|||||||
requires:
|
requires:
|
||||||
- prep-deps
|
- prep-deps
|
||||||
- prep-build
|
- prep-build
|
||||||
|
- prep-build-storybook
|
||||||
- benchmark
|
- benchmark
|
||||||
- all-tests-pass
|
- all-tests-pass
|
||||||
- job-publish-release:
|
- job-publish-release:
|
||||||
@ -214,7 +215,7 @@ jobs:
|
|||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: .
|
root: .
|
||||||
paths:
|
paths:
|
||||||
- .out
|
- storybook-build
|
||||||
|
|
||||||
test-lint:
|
test-lint:
|
||||||
executor: node-browsers
|
executor: node-browsers
|
||||||
@ -416,6 +417,9 @@ jobs:
|
|||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: build-artifacts
|
path: build-artifacts
|
||||||
destination: build-artifacts
|
destination: build-artifacts
|
||||||
|
- store_artifacts:
|
||||||
|
path: storybook-build
|
||||||
|
destination: storybook
|
||||||
- run:
|
- run:
|
||||||
name: build:announce
|
name: build:announce
|
||||||
command: ./development/metamaskbot-build-announce.js
|
command: ./development/metamaskbot-build-announce.js
|
||||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -26,7 +26,7 @@ temp
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
app/.DS_Store
|
app/.DS_Store
|
||||||
|
|
||||||
.out/
|
storybook-build/
|
||||||
coverage/
|
coverage/
|
||||||
dist
|
dist
|
||||||
builds/
|
builds/
|
||||||
|
@ -58,6 +58,9 @@ async function start() {
|
|||||||
const coverageUrl = `${BUILD_LINK_BASE}/coverage/index.html`
|
const coverageUrl = `${BUILD_LINK_BASE}/coverage/index.html`
|
||||||
const coverageLink = `<a href="${coverageUrl}">Report</a>`
|
const coverageLink = `<a href="${coverageUrl}">Report</a>`
|
||||||
|
|
||||||
|
const storybookUrl = `${BUILD_LINK_BASE}/storybook/index.html`
|
||||||
|
const storybookLink = `<a href="${storybookUrl}">Storybook</a>`
|
||||||
|
|
||||||
// link to artifacts
|
// link to artifacts
|
||||||
const allArtifactsUrl = `https://circleci.com/gh/MetaMask/metamask-extension/${CIRCLE_BUILD_NUM}#artifacts/containers/0`
|
const allArtifactsUrl = `https://circleci.com/gh/MetaMask/metamask-extension/${CIRCLE_BUILD_NUM}#artifacts/containers/0`
|
||||||
|
|
||||||
@ -65,6 +68,7 @@ async function start() {
|
|||||||
`builds: ${buildLinks}`,
|
`builds: ${buildLinks}`,
|
||||||
`bundle viz: ${bundleLinks}`,
|
`bundle viz: ${bundleLinks}`,
|
||||||
`code coverage: ${coverageLink}`,
|
`code coverage: ${coverageLink}`,
|
||||||
|
`storybook: ${storybookLink}`,
|
||||||
`<a href="${allArtifactsUrl}">all artifacts</a>`,
|
`<a href="${allArtifactsUrl}">all artifacts</a>`,
|
||||||
]
|
]
|
||||||
const hiddenContent = `<ul>${contentRows
|
const hiddenContent = `<ul>${contentRows
|
||||||
|
@ -48,8 +48,8 @@
|
|||||||
"start:dev": "concurrently -k -n build,react,redux yarn:start yarn:devtools:react yarn:devtools:redux",
|
"start:dev": "concurrently -k -n build,react,redux yarn:start yarn:devtools:react yarn:devtools:redux",
|
||||||
"announce": "node development/announcer.js",
|
"announce": "node development/announcer.js",
|
||||||
"storybook": "start-storybook -p 6006 -c .storybook --static-dir ./app ./storybook/images",
|
"storybook": "start-storybook -p 6006 -c .storybook --static-dir ./app ./storybook/images",
|
||||||
"storybook:build": "build-storybook -c .storybook -o .out --static-dir ./app ./storybook/images",
|
"storybook:build": "build-storybook -c .storybook -o storybook-build --static-dir ./app ./storybook/images",
|
||||||
"storybook:deploy": "storybook-to-ghpages --existing-output-dir .out --remote storybook --branch master",
|
"storybook:deploy": "storybook-to-ghpages --existing-output-dir storybook-build --remote storybook --branch master",
|
||||||
"update-changelog": "./development/auto-changelog.sh",
|
"update-changelog": "./development/auto-changelog.sh",
|
||||||
"generate:migration": "./development/generate-migration.sh"
|
"generate:migration": "./development/generate-migration.sh"
|
||||||
},
|
},
|
||||||
|
@ -25,7 +25,7 @@ export const box = () => {
|
|||||||
'children',
|
'children',
|
||||||
)
|
)
|
||||||
for (let $i = 0; $i < number('items', 1, {}, 'children'); $i++) {
|
for (let $i = 0; $i < number('items', 1, {}, 'children'); $i++) {
|
||||||
items.push(<img width={size} height={size} src="/images/eth_logo.svg" />)
|
items.push(<img width={size} height={size} src="./images/eth_logo.svg" />)
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
|
Loading…
Reference in New Issue
Block a user