Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
oxve committed Jul 17, 2023
1 parent 6b42c43 commit 7d5d899
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/unit_test_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
uses: actions/github-script@v6
with:
script: |
console.log(context);
let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
Expand All @@ -45,6 +46,7 @@ jobs:
});
if (matchArtifact.length == 0) {
// No reports were uploaded.
console.log('No unit test reports were uploaded');
return false;
}
let download = await github.rest.actions.downloadArtifact({
Expand All @@ -55,6 +57,7 @@ jobs:
});
let fs = require('fs');
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/unit-test-results.zip`, Buffer.from(download.data));
console.log(`${process.env.GITHUB_WORKSPACE}/unit-test-results.zip`);
return true;
- run: unzip unit-test-results.zip -d unit-test-results
if: steps.collect-report.outputs.result
Expand Down

0 comments on commit 7d5d899

Please sign in to comment.