mirror of
				https://github.com/actions/cache.git
				synced 2025-10-31 11:48:38 +08:00 
			
		
		
		
	Merge branch 'master' into master
This commit is contained in:
		
						commit
						3e8a6fb76f
					
				
							
								
								
									
										13
									
								
								.github/workflows/workflow.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								.github/workflows/workflow.yml
									
									
									
									
										vendored
									
									
								
							|  | @ -1,4 +1,4 @@ | ||||||
| name: Test Cache Action | name: Tests | ||||||
| on: | on: | ||||||
|   pull_request: |   pull_request: | ||||||
|   push: |   push: | ||||||
|  | @ -7,10 +7,19 @@ on: | ||||||
| 
 | 
 | ||||||
| jobs: | jobs: | ||||||
|   test: |   test: | ||||||
|     runs-on: ubuntu-latest |     name: Test on ${{ matrix.os }} | ||||||
|  |     strategy: | ||||||
|  |       matrix: | ||||||
|  |         os: [ubuntu-latest, windows-latest, macOS-latest] | ||||||
|  |     runs-on: ${{ matrix.os }} | ||||||
|  |      | ||||||
|     steps: |     steps: | ||||||
|     - uses: actions/checkout@v1 |     - uses: actions/checkout@v1 | ||||||
|        |        | ||||||
|  |     - uses: actions/setup-node@v1 | ||||||
|  |       with: | ||||||
|  |         node-version: '12.x' | ||||||
|  | 
 | ||||||
|     - run: npm ci |     - run: npm ci | ||||||
| 
 | 
 | ||||||
|     - name: Prettier Format Check |     - name: Prettier Format Check | ||||||
|  |  | ||||||
							
								
								
									
										22
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								README.md
									
									
									
									
									
								
							|  | @ -2,6 +2,8 @@ | ||||||
| 
 | 
 | ||||||
| This GitHub Action allows caching dependencies and build outputs to improve workflow execution time. | This GitHub Action allows caching dependencies and build outputs to improve workflow execution time. | ||||||
| 
 | 
 | ||||||
|  | <a href="https://github.com/actions/cache"><img alt="GitHub Actions status" src="https://github.com/actions/cache/workflows/Tests/badge.svg"></a> | ||||||
|  | 
 | ||||||
| ## Usage | ## Usage | ||||||
| 
 | 
 | ||||||
| ### Pre-requisites | ### Pre-requisites | ||||||
|  | @ -110,6 +112,26 @@ uses: actions/cache@preview | ||||||
|           ${{ runner.os }}-carthage- |           ${{ runner.os }}-carthage- | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  | ### Swift, Objective-C - CocoaPods | ||||||
|  | ```yaml | ||||||
|  | - uses: actions/cache@preview | ||||||
|  |   with: | ||||||
|  |     path: Pods | ||||||
|  |     key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | ||||||
|  |     restore-keys: | | ||||||
|  |       ${{ runner.os }}-pods- | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
|  | ### Ruby - Gem | ||||||
|  | ```yaml | ||||||
|  | - uses: actions/cache@preview | ||||||
|  |   with: | ||||||
|  |     path: vendor/bundle | ||||||
|  |     key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }} | ||||||
|  |     restore-keys: | | ||||||
|  |       ${{ runner.os }}-gem- | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
| ## Cache Limits | ## Cache Limits | ||||||
| 
 | 
 | ||||||
| Individual caches are limited to 200MB and a repository can have up to 2GB of caches. Once the 2GB limit is reached, older caches will be evicted based on when the cache was last accessed. | Individual caches are limited to 200MB and a repository can have up to 2GB of caches. Once the 2GB limit is reached, older caches will be evicted based on when the cache was last accessed. | ||||||
|  |  | ||||||
							
								
								
									
										6
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							|  | @ -4975,9 +4975,9 @@ | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     "typescript": { |     "typescript": { | ||||||
|       "version": "3.5.3", |       "version": "3.6.4", | ||||||
|       "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.5.3.tgz", |       "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.6.4.tgz", | ||||||
|       "integrity": "sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g==", |       "integrity": "sha512-unoCll1+l+YK4i4F8f22TaNVPRHcD9PA3yCuZ8g5e0qGqlVlJ/8FSateOLLSagn+Yg5+ZwuPkL8LFUc0Jcvksg==", | ||||||
|       "dev": true |       "dev": true | ||||||
|     }, |     }, | ||||||
|     "uglify-js": { |     "uglify-js": { | ||||||
|  |  | ||||||
|  | @ -38,6 +38,6 @@ | ||||||
|     "jest-circus": "^24.7.1", |     "jest-circus": "^24.7.1", | ||||||
|     "prettier": "1.18.2", |     "prettier": "1.18.2", | ||||||
|     "ts-jest": "^24.0.2", |     "ts-jest": "^24.0.2", | ||||||
|     "typescript": "^3.5.1" |     "typescript": "^3.6.4" | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Josh Gross
						Josh Gross