You've already forked setup-node
							
							
				mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 16:56:38 +07:00 
			
		
		
		
	dbg
This commit is contained in:
		
							
								
								
									
										19
									
								
								.github/workflows/versions.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										19
									
								
								.github/workflows/versions.yml
									
									
									
									
										vendored
									
									
								
							@ -29,18 +29,19 @@ jobs:
 | 
			
		||||
        with:
 | 
			
		||||
          node-version: 11          
 | 
			
		||||
      - name: Verify node and npm
 | 
			
		||||
        run: __tests__/verify-node.sh 11      
 | 
			
		||||
      # test version from node manifest
 | 
			
		||||
      - name: Setup node 12 from manifest
 | 
			
		||||
        uses: ./
 | 
			
		||||
        with:
 | 
			
		||||
          node-version: 12
 | 
			
		||||
      - name: Verify node and npm
 | 
			
		||||
        run: __tests__/verify-node.sh 12
 | 
			
		||||
        run: __tests__/verify-node.sh 11
 | 
			
		||||
      # test old versions which didn't have npm and layout different      
 | 
			
		||||
      - name: Setup node 0.12.18 from dist
 | 
			
		||||
        uses: ./                 
 | 
			
		||||
        with:
 | 
			
		||||
          node-version: 0.12.18
 | 
			
		||||
      - name: Verify node
 | 
			
		||||
        shell: bash
 | 
			
		||||
        run: __tests__/verify-node.sh 0.12.18 SKIP_NPM      
 | 
			
		||||
        run: __tests__/verify-node.sh 0.12.18 SKIP_NPM 
 | 
			
		||||
      # test version from node manifest
 | 
			
		||||
      - name: Setup node 12 from manifest
 | 
			
		||||
        uses: ./
 | 
			
		||||
        with:
 | 
			
		||||
          node-version: 12
 | 
			
		||||
      - name: Verify node and npm
 | 
			
		||||
        run: __tests__/verify-node.sh 12        
 | 
			
		||||
 | 
			
		||||
@ -76,20 +76,9 @@ export async function getNode(
 | 
			
		||||
    let extPath: string;
 | 
			
		||||
    if (osPlat == 'win32') {
 | 
			
		||||
      let _7zPath = path.join(__dirname, '..', 'externals', '7zr.exe');
 | 
			
		||||
 | 
			
		||||
      console.log(
 | 
			
		||||
        `downloadPath: ${downloadPath}`,
 | 
			
		||||
        `isFile: ${fs.statSync(downloadPath).isFile()}`
 | 
			
		||||
      );
 | 
			
		||||
      console.log(JSON.stringify(fs.statSync(downloadPath)));
 | 
			
		||||
 | 
			
		||||
      extPath = await tc.extract7z(downloadPath, undefined, _7zPath);
 | 
			
		||||
      // 7z extracts to folder matching file name
 | 
			
		||||
      extPath = path.join(extPath, path.basename(info.fileName, '.7z'));
 | 
			
		||||
      console.log(
 | 
			
		||||
        `extPath: ${extPath}`,
 | 
			
		||||
        `isDirectory: ${fs.statSync(extPath).isDirectory()}`
 | 
			
		||||
      );
 | 
			
		||||
    } else {
 | 
			
		||||
      extPath = await tc.extractTar(downloadPath, undefined, [
 | 
			
		||||
        'xz',
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user