mirror of
				https://github.com/actions/setup-dotnet.git
				synced 2025-11-04 06:33:45 +00:00 
			
		
		
		
	Add e2e test for dotnet-quality input
This commit is contained in:
		
							parent
							
								
									d713ed4e77
								
							
						
					
					
						commit
						7191ccfea1
					
				
							
								
								
									
										26
									
								
								.github/workflows/workflow.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										26
									
								
								.github/workflows/workflow.yml
									
									
									
									
										vendored
									
									
								
							@ -1,7 +1,6 @@
 | 
				
			|||||||
name: Main workflow
 | 
					name: Main workflow
 | 
				
			||||||
 | 
					
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
  workflow_dispatch:
 | 
					 | 
				
			||||||
  pull_request:
 | 
					  pull_request:
 | 
				
			||||||
    paths-ignore:
 | 
					    paths-ignore:
 | 
				
			||||||
      - '**.md'
 | 
					      - '**.md'
 | 
				
			||||||
@ -214,6 +213,31 @@ jobs:
 | 
				
			|||||||
        shell: pwsh
 | 
					        shell: pwsh
 | 
				
			||||||
        run: __tests__/verify-dotnet.ps1 2.2 3.1
 | 
					        run: __tests__/verify-dotnet.ps1 2.2 3.1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  test-setup-with-dotnet-quality:
 | 
				
			||||||
 | 
					      runs-on: ${{ matrix.operating-system }}
 | 
				
			||||||
 | 
					      strategy:
 | 
				
			||||||
 | 
					        fail-fast: false
 | 
				
			||||||
 | 
					        matrix:
 | 
				
			||||||
 | 
					          operating-system: [ubuntu-latest, windows-latest, macOS-latest]
 | 
				
			||||||
 | 
					      steps:
 | 
				
			||||||
 | 
					        - name: Checkout
 | 
				
			||||||
 | 
					          uses: actions/checkout@v3
 | 
				
			||||||
 | 
					        - name: Clear toolcache
 | 
				
			||||||
 | 
					          shell: pwsh
 | 
				
			||||||
 | 
					          run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
 | 
				
			||||||
 | 
					        - name: Setup dotnet 7.0 with preview quality
 | 
				
			||||||
 | 
					          uses: ./
 | 
				
			||||||
 | 
					          with:
 | 
				
			||||||
 | 
					            dotnet-version: "7.0"
 | 
				
			||||||
 | 
					            dotnet-quality: "preview"
 | 
				
			||||||
 | 
					        - name: Verify preview version
 | 
				
			||||||
 | 
					          shell: pwsh
 | 
				
			||||||
 | 
					          run: |
 | 
				
			||||||
 | 
					          $version = & dotnet --version
 | 
				
			||||||
 | 
					          Write-Host "Installed version: $version"
 | 
				
			||||||
 | 
					          if (-not $version.Contains("preview")) { throw "Unexpected version" }
 | 
				
			||||||
 | 
					          __tests__/verify-dotnet.ps1 $version
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  test-proxy:
 | 
					  test-proxy:
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    container:
 | 
					    container:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user