diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 45528d7e..4a013380 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,3 +17,4 @@ jobs: github-token: "${{ secrets.GITHUB_TOKEN }}" image-directory-path: "./images" disable-branch: true + report-file-path: './' diff --git a/src/compare.ts b/src/compare.ts index 2d82153a..c3219ebc 100644 --- a/src/compare.ts +++ b/src/compare.ts @@ -34,7 +34,13 @@ export const compare = async (config: Config): Promise => }); if (config.reportFilePath) { - await cpy(path.join(workspace(), './report.html'), config.reportFilePath); + log.info(`reportFilePath ${config.reportFilePath} detected`); + try { + await cpy(workspace() + '/**/*', config.reportFilePath); + log.info(`Succeeded to copy reg data to ${config.reportFilePath}.`); + } catch (e) { + log.error(`Failed to copy reg data to ${config.reportFilePath} reason: ${e}`); + } } emitter.on('complete', result => {