mirror of
				https://gitea.com/actions/setup-node.git
				synced 2025-10-29 15:52:42 +08:00 
			
		
		
		
	Fix test volta priority (#577)
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							9f3a02bbd1
						
					
				
				
					commit
					969bd26639
				
			
							
								
								
									
										8
									
								
								.github/workflows/versions.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/versions.yml
									
									
									
									
										vendored
									
									
								
							| @@ -95,6 +95,9 @@ jobs: | ||||
|         node-version-file: [.nvmrc, .tool-versions, package.json] | ||||
|     steps: | ||||
|       - uses: actions/checkout@v3 | ||||
|       - name: Remove volta from package.json | ||||
|         shell: bash | ||||
|         run: cat <<< "$(jq 'del(.volta)' ./__tests__/data/package.json)" > ./__tests__/data/package.json | ||||
|       - name: Setup node from node version file | ||||
|         uses: ./ | ||||
|         with: | ||||
| @@ -110,15 +113,12 @@ jobs: | ||||
|         os: [ ubuntu-latest, windows-latest, macos-latest ] | ||||
|     steps: | ||||
|       - uses: actions/checkout@v3 | ||||
|       - name: Remove engines from package.json | ||||
|         shell: bash | ||||
|         run: cat <<< "$(jq 'del(.engines)' ./__tests__/data/package.json)" > ./__tests__/data/package.json | ||||
|       - name: Setup node from node version file | ||||
|         uses: ./ | ||||
|         with: | ||||
|           node-version-file: '__tests__/data/package.json' | ||||
|       - name: Verify node | ||||
|         run: __tests__/verify-node.sh 14 | ||||
|         run: __tests__/verify-node.sh 16 | ||||
|  | ||||
|   node-dist: | ||||
|     runs-on: ${{ matrix.os }} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user