mirror of
				https://github.com/actions/cache.git
				synced 2025-10-31 20:08:36 +08:00 
			
		
		
		
	Add PHP Composer example
This commit is contained in:
		
							parent
							
								
									e1ed41a9c9
								
							
						
					
					
						commit
						85fccc0a1f
					
				
							
								
								
									
										16
									
								
								examples.md
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								examples.md
									
									
									
									
									
								
							|  | @ -7,6 +7,7 @@ | ||||||
| - [Java - Maven](#java---maven) | - [Java - Maven](#java---maven) | ||||||
| - [Node - npm](#node---npm) | - [Node - npm](#node---npm) | ||||||
| - [Node - Yarn](#node---yarn) | - [Node - Yarn](#node---yarn) | ||||||
|  | - [PHP - Composer](#php---composer) | ||||||
| - [Ruby - Gem](#ruby---gem) | - [Ruby - Gem](#ruby---gem) | ||||||
| - [Rust - Cargo](#rust---cargo) | - [Rust - Cargo](#rust---cargo) | ||||||
| - [Swift, Objective-C - Carthage](#swift-objective-c---carthage) | - [Swift, Objective-C - Carthage](#swift-objective-c---carthage) | ||||||
|  | @ -89,6 +90,21 @@ Using [NuGet lock files](https://docs.microsoft.com/nuget/consume-packages/packa | ||||||
|       ${{ runner.os }}-yarn- |       ${{ runner.os }}-yarn- | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  | ## PHP - Composer | ||||||
|  | 
 | ||||||
|  | ```yaml   | ||||||
|  | - name: Get Composer Cache Directory | ||||||
|  |   id: composer-cache | ||||||
|  |   run: | | ||||||
|  |     echo "::set-output name=dir::$(composer config cache-files-dir)" | ||||||
|  | - uses: actions/cache@v1 | ||||||
|  |   with: | ||||||
|  |     path: ${{ steps.composer-cache.outputs.dir }} | ||||||
|  |     key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||||||
|  |     restore-keys: | | ||||||
|  |       ${{ runner.os }}-composer- | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
| ## Ruby - Gem | ## Ruby - Gem | ||||||
| 
 | 
 | ||||||
| ```yaml | ```yaml | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Kai Neuwerth
						Kai Neuwerth