mirror of
				https://github.com/actions/setup-dotnet.git
				synced 2025-10-31 23:43:44 +00:00 
			
		
		
		
	ci: add e2e test for cache
This commit is contained in:
		
							parent
							
								
									4e3fa35ff8
								
							
						
					
					
						commit
						71228fdbf6
					
				
							
								
								
									
										28
									
								
								.github/workflows/e2e-tests.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										28
									
								
								.github/workflows/e2e-tests.yml
									
									
									
									
										vendored
									
									
								
							| @ -205,6 +205,34 @@ jobs: | ||||
|         shell: pwsh | ||||
|         run: __tests__/verify-dotnet.ps1 -Patterns "^7\.0\.\d+-" | ||||
| 
 | ||||
|   test-setup-with-cache: | ||||
|     runs-on: ${{ matrix.operating-system }} | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         operating-system: [ubuntu-latest, windows-latest, macos-latest] | ||||
|     env: | ||||
|       NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages | ||||
|     steps: | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v3 | ||||
|       - name: Clear toolcache | ||||
|         shell: pwsh | ||||
|         run: __tests__/clear-toolcache.ps1 ${{ runner.os }} | ||||
|       - name: Setup .NET Core 3.1 | ||||
|         id: setup-dotnet | ||||
|         uses: ./ | ||||
|         with: | ||||
|           dotnet-version: 3.1 | ||||
|           cache: true | ||||
|       - name: Verify Cache | ||||
|         if: steps.setup-dotnet.outputs.cache-hit == 'true' | ||||
|         shell: bash | ||||
|         run: if [[ -e ${NUGET_PACKAGES} ]]; then exit 0; else exit 1; fi | ||||
|       - name: Verify dotnet | ||||
|         shell: pwsh | ||||
|         run: __tests__/verify-dotnet.ps1 -Patterns "^3.1" | ||||
| 
 | ||||
|   test-dotnet-version-output-during-single-version-installation: | ||||
|     runs-on: ${{ matrix.operating-system }} | ||||
|     strategy: | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user