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..272bc2ca 100644 --- a/src/compare.ts +++ b/src/compare.ts @@ -34,7 +34,8 @@ 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`); + await cpy(workspace() + '/**/*', config.reportFilePath); } emitter.on('complete', result => {