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 c43291b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 11 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'
2 changes: 1 addition & 1 deletion dist/run-post-actions/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/run-post-actions/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/run-tests/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/run-tests/index.js.map

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const uploadArtifacts = async (diffpath) => {
return;
}

const globber = await glob.create(`${diffpath}/**`);
const globber = await glob.create(`${diffpath}/*/**`, { implicitDescendants: false});
const filepaths = await globber.glob();

if (filepaths.length === 0) {
Expand All @@ -36,9 +36,7 @@ const uploadArtifacts = async (diffpath) => {

const artifactClient = new DefaultArtifactClient();
const artifactName = 'test-results';
console.log('22222222222222222222222222222222222');
console.log({ artifactName, filepaths, diffpath });
console.log('22222222222222222222222222222222222222222');
console.log({ artifactName, filepaths, diffpath })
await artifactClient.uploadArtifact(artifactName, filepaths, diffpath);
// NOTE: Users need notification that screenshots have been generated. Not error.
core.info(colors.bgYellow.black('Download snapshots from Artifacts.'));
Expand Down Expand Up @@ -78,9 +76,7 @@ const uploadTestData = async (options) => {
const artifactName = 'test-data';
const artifactClient = new DefaultArtifactClient();
const archivePath = path.join(projectSourcePath, archiveName);
console.log('111111111111111111111111111111111111111111111111');
console.log({ artifactName, archivePaths: [archivePath], projectSourcePath });
console.log('111111111111111111111111111111111111111111111111');
await artifactClient.uploadArtifact(artifactName, [archivePath], projectSourcePath);
core.info(colors.bgYellow.black('Download snapshots from Artifacts.'));
};
Expand Down

0 comments on commit c43291b

Please sign in to comment.