mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 13:29:12 +08:00 
			
		
		
		
	Bypass another check
This commit is contained in:
		@@ -88,7 +88,8 @@ describe('installer tests', () => {
 | 
			
		||||
    }
 | 
			
		||||
  }, 100000);
 | 
			
		||||
 | 
			
		||||
  it('Uses version of node installed in cache', async () => {
 | 
			
		||||
  // Usage of pre-cached Node.js is temporarily disabled.
 | 
			
		||||
  xit('Uses version of node installed in cache', async () => {
 | 
			
		||||
    const nodeDir: string = path.join(toolDir, 'node', '250.0.0', os.arch());
 | 
			
		||||
    await io.mkdirP(nodeDir);
 | 
			
		||||
    fs.writeFileSync(`${nodeDir}.complete`, 'hello');
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										3
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							@@ -12249,7 +12249,8 @@ function getNode(versionSpec) {
 | 
			
		||||
                // check cache
 | 
			
		||||
                toolPath = tc.find('node', version);
 | 
			
		||||
            }
 | 
			
		||||
            if (!toolPath) {
 | 
			
		||||
            // Usage of pre-cached Node.js is temporarily disabled.
 | 
			
		||||
            if (true) {
 | 
			
		||||
                // download, extract, cache
 | 
			
		||||
                toolPath = yield acquireNode(version);
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
@@ -46,7 +46,8 @@ export async function getNode(versionSpec: string) {
 | 
			
		||||
      toolPath = tc.find('node', version);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (!toolPath) {
 | 
			
		||||
    // Usage of pre-cached Node.js is temporarily disabled.
 | 
			
		||||
    if (true) {
 | 
			
		||||
      // download, extract, cache
 | 
			
		||||
      toolPath = await acquireNode(version);
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user