mirror of
				https://github.com/actions/setup-java.git
				synced 2025-11-04 08:20:54 +00:00 
			
		
		
		
	add sbt pattern.
This commit is contained in:
		
					parent
					
						
							
								a618b3f170
							
						
					
				
			
			
				commit
				
					
						acc6b27ae4
					
				
			
		
					 2 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
					@ -123,7 +123,7 @@ describe('dependency cache', () => {
 | 
				
			||||||
        await expect(restore('sbt')).rejects.toThrowError(
 | 
					        await expect(restore('sbt')).rejects.toThrowError(
 | 
				
			||||||
          `No file in ${projectRoot(
 | 
					          `No file in ${projectRoot(
 | 
				
			||||||
            workspace
 | 
					            workspace
 | 
				
			||||||
          )} matched to [**/build.sbt], make sure you have checked out the target repository`
 | 
					          )} matched to [**/*.sbt,**/project/**.scala,**/project/build.properties,**/project/**.scala], make sure you have checked out the target repository`
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
      it('downloads cache', async () => {
 | 
					      it('downloads cache', async () => {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -36,8 +36,7 @@ const supportedPackageManager: PackageManager[] = [
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    id: 'sbt',
 | 
					    id: 'sbt',
 | 
				
			||||||
    path: [join(os.homedir(), '.ivy2', 'cache'), join(os.homedir(), '.sbt')],
 | 
					    path: [join(os.homedir(), '.ivy2', 'cache'), join(os.homedir(), '.sbt')],
 | 
				
			||||||
    // https://github.com/actions/cache/blob/0638051e9af2c23d10bb70fa9beffcad6cff9ce3/examples.md#scala---sbt
 | 
					    pattern: ['**/*.sbt', '**/project/**.scala', '**/project/build.properties', '**/project/**.scala']
 | 
				
			||||||
    pattern: ['**/build.sbt']
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
];
 | 
					];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue