Print task run duration time

This commit is contained in:
SukkaW
2023-09-13 14:07:38 +08:00
parent 09c8b62f6a
commit 9f05105b29
17 changed files with 96 additions and 92 deletions

View File

@@ -8,6 +8,7 @@ const { Readable } = require('stream');
const { pipeline } = require('stream/promises');
const { readFileByLine } = require('./lib/fetch-remote-text-by-line');
const { isCI } = require('ci-info');
const { runner } = require('./lib/trace-runner');
const fileExists = (path) => {
return fs.promises.access(path, fs.constants.F_OK)
@@ -15,7 +16,7 @@ const fileExists = (path) => {
.catch(() => false);
};
(async () => {
runner(__filename, async () => {
const filesList = ['Clash', 'List'];
let allFileExists = true;
@@ -77,4 +78,4 @@ const fileExists = (path) => {
}));
await fs.promises.unlink(extractedPath).catch(() => { });
})();
});