mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Add HTML coverage report to MetaMask bot comment (#10061)
The HTML code coverage report generated by `nyc` is now included in the MetaMask bot comment. It has been saved as an artifact on CircleCI.
This commit is contained in:
parent
da1aae772b
commit
94f0588f0e
@ -395,6 +395,9 @@ jobs:
|
|||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: builds
|
path: builds
|
||||||
destination: builds
|
destination: builds
|
||||||
|
- store_artifacts:
|
||||||
|
path: coverage
|
||||||
|
destination: coverage
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: test-artifacts
|
path: test-artifacts
|
||||||
destination: test-artifacts
|
destination: test-artifacts
|
||||||
|
@ -55,6 +55,9 @@ async function start() {
|
|||||||
})
|
})
|
||||||
.join(', ')
|
.join(', ')
|
||||||
|
|
||||||
|
const coverageUrl = `${BUILD_LINK_BASE}/coverage/index.html`
|
||||||
|
const coverageLink = `<a href="${coverageUrl}">Report</a>`
|
||||||
|
|
||||||
// links to bundle browser builds
|
// links to bundle browser builds
|
||||||
const depVizUrl = `${BUILD_LINK_BASE}/build-artifacts/deps-viz/background/index.html`
|
const depVizUrl = `${BUILD_LINK_BASE}/build-artifacts/deps-viz/background/index.html`
|
||||||
const depVizLink = `<a href="${depVizUrl}">background</a>`
|
const depVizLink = `<a href="${depVizUrl}">background</a>`
|
||||||
@ -65,6 +68,7 @@ async function start() {
|
|||||||
const contentRows = [
|
const contentRows = [
|
||||||
`builds: ${buildLinks}`,
|
`builds: ${buildLinks}`,
|
||||||
`bundle viz: ${bundleLinks}`,
|
`bundle viz: ${bundleLinks}`,
|
||||||
|
`code coverage: ${coverageLink}`,
|
||||||
`dep viz: ${depVizLink}`,
|
`dep viz: ${depVizLink}`,
|
||||||
`<a href="${allArtifactsUrl}">all artifacts</a>`,
|
`<a href="${allArtifactsUrl}">all artifacts</a>`,
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user