Skip to content

Commit

Permalink
try gc
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Jun 30, 2024
1 parent 0bcf306 commit 87ef80e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/test-tstyche.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,3 @@ jobs:
env:
FORCE_COLOR: true
MCR_LOG_TIME: true
NODE_OPTIONS: --max-old-space-size=8192
3 changes: 3 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ class CoverageReport {
return;
}

// GC, no OOM
this.fileCache = [];

const { dataList, sourceCache } = inputData;

// empty output dir except cache dir before generate reports
Expand Down

0 comments on commit 87ef80e

Please sign in to comment.