mirror of
				https://gitea.com/actions/setup-node.git
				synced 2025-10-29 15:52:42 +08:00 
			
		
		
		
	Detect cached folders from multiple directories (#735)
* Add project-dir * Fix find lock file * Remove package-dir input * format & resolve conflicts * Add unit tests * build dist * Apply change request fixes * handle non-dir cache-dependency-path * bump cache version * run checks * Handle globs in cacheDependencyPath * refactor, introduce `cacheDependencyPathToProjectsDirectories` it is necessary for the next PR related yarn optimization * Changes requests * Apply fixes * review fixes * add e2e * Add unique * review updates * review updates second stage * Review fixes 3 * imporve e2e tests
This commit is contained in:
		
							
								
								
									
										27
									
								
								.github/workflows/e2e-cache.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										27
									
								
								.github/workflows/e2e-cache.yml
									
									
									
									
										vendored
									
									
								
							| @@ -134,3 +134,30 @@ jobs: | ||||
|       - name: Verify node and yarn | ||||
|         run: __tests__/verify-node.sh "${{ matrix.node-version }}" | ||||
|         shell: bash | ||||
|  | ||||
|   yarn-subprojects: | ||||
|     name: Test yarn subprojects | ||||
|     strategy: | ||||
|       matrix: | ||||
|         node-version: [12, 14, 16] | ||||
|     runs-on: ubuntu-latest | ||||
|  | ||||
|     steps: | ||||
|       - uses: actions/checkout@v3 | ||||
|  | ||||
|       - name: prepare sub-projects | ||||
|         run: __tests__/prepare-subprojects.sh | ||||
|  | ||||
|       # expect | ||||
|       #  - no errors | ||||
|       #  - log | ||||
|       #    ##[debug]Cache Paths: | ||||
|       #    ##[debug]["sub2/.yarn/cache","sub3/.yarn/cache","../../../.cache/yarn/v6"] | ||||
|       - name: Setup Node | ||||
|         uses: ./ | ||||
|         with: | ||||
|           node-version: ${{ matrix.node-version }} | ||||
|           cache: 'yarn' | ||||
|           cache-dependency-path: | | ||||
|             **/*.lock | ||||
|             yarn.lock | ||||
|   | ||||
		Reference in New Issue
	
	Block a user