mirror of
https://github.com/actions/setup-node.git
synced 2025-12-18 22:37:08 +00:00
fix tests
This commit is contained in:
parent
81b484e462
commit
0b341692b6
3 changed files with 17 additions and 1 deletions
|
|
@ -10,6 +10,10 @@ import * as assert from 'assert';
|
|||
import * as path from 'path';
|
||||
import os from 'os';
|
||||
import fs from 'fs';
|
||||
import {fileURLToPath} from 'url';
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
||||
import {NodeInputs, INodeVersion, INodeVersionInfo} from './base-models.js';
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,10 @@ import {isCacheFeatureAvailable} from './cache-utils.js';
|
|||
import {getNodejsDistribution} from './distributions/installer-factory.js';
|
||||
import {getNodeVersionFromFile, printEnvDetailsAndSetOutput} from './util.js';
|
||||
import {State} from './constants.js';
|
||||
import {fileURLToPath} from 'url';
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
||||
export async function run() {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue