Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fey committed May 24, 2024
1 parent 1f4c393 commit 7b680de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ inputs:
default: "/var/tmp"

runs:
using: 'node16'
using: 'node20'
main: 'dist/run-tests/index.js'
post: 'dist/run-post-actions/index.js'
7 changes: 4 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ const uploadArtifacts = async (diffpath) => {
return;
}

const globber = await glob.create(`${diffpath}/**`);
const globber = await glob.create(`${diffpath}/**`, {});
const filepaths = await globber.glob();
const processedFilepaths = filepaths.filter((path) => path);

if (filepaths.length === 0) {
return;
Expand All @@ -37,9 +38,9 @@ const uploadArtifacts = async (diffpath) => {
const artifactClient = new DefaultArtifactClient();
const artifactName = 'test-results';
console.log('22222222222222222222222222222222222');
console.log({ artifactName, filepaths, diffpath });
console.log({ artifactName, processedFilepaths, diffpath });
console.log('22222222222222222222222222222222222222222');
await artifactClient.uploadArtifact(artifactName, filepaths, diffpath);
await artifactClient.uploadArtifact(artifactName, processedFilepaths, diffpath);
// NOTE: Users need notification that screenshots have been generated. Not error.
core.info(colors.bgYellow.black('Download snapshots from Artifacts.'));
};
Expand Down

0 comments on commit 7b680de

Please sign in to comment.