mirror of
				https://github.com/actions/cache.git
				synced 2025-10-31 03:38:36 +08:00 
			
		
		
		
	Add PHP-Composer example
This commit is contained in:
		
							parent
							
								
									87c0185d27
								
							
						
					
					
						commit
						c6132dbeca
					
				
							
								
								
									
										13
									
								
								examples.md
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								examples.md
									
									
									
									
									
								
							|  | @ -9,6 +9,8 @@ | ||||||
| - [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods) | - [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods) | ||||||
| - [Ruby - Gem](#ruby---gem) | - [Ruby - Gem](#ruby---gem) | ||||||
| - [Go - Modules](#go---modules) | - [Go - Modules](#go---modules) | ||||||
|  | - [PHP - Composer](#php---composer) | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| ## Node - npm | ## Node - npm | ||||||
| 
 | 
 | ||||||
|  | @ -108,3 +110,14 @@ uses: actions/cache@preview | ||||||
|     restore-keys: | |     restore-keys: | | ||||||
|       ${{ runner.os }}-go- |       ${{ runner.os }}-go- | ||||||
| ``` | ``` | ||||||
|  | 
 | ||||||
|  | ## PHP - Composer | ||||||
|  | 
 | ||||||
|  | ```yaml | ||||||
|  | - uses: actions/cache@preview | ||||||
|  |   with: | ||||||
|  |     path: ~/.cache/composer | ||||||
|  |     key: ${{ runner.os }}-composer-${{ hashFiles(format('{0}{1}', github.workspace, '/composer.lock')) }} | ||||||
|  |     restore-keys: | | ||||||
|  |       ${{ runner.os }}-composer- | ||||||
|  | ``` | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Janez Troha
						Janez Troha