mirror of
				https://github.com/actions/checkout.git
				synced 2025-10-31 10:08:37 +08:00 
			
		
		
		
	feat: updated test to make all checks in only one check
This commit is contained in:
		
							parent
							
								
									18e5a0dd62
								
							
						
					
					
						commit
						e12b86ed41
					
				
							
								
								
									
										14
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							|  | @ -113,22 +113,14 @@ jobs: | |||
|       - name: Verify submodules recursive | ||||
|         run: __test__/verify-submodules-recursive.sh | ||||
| 
 | ||||
|       # Sparse checkout basic example | ||||
|       - name: Sparse checkout basic example | ||||
|         uses: ./ | ||||
|         with: | ||||
|           sparse-checkout: __test__ | ||||
|       - name: Verify sparse checkout basic | ||||
|         run: __test__/verify-sparse-checkout-basic.sh | ||||
| 
 | ||||
|      # Sparse checkout example | ||||
|       - name: Sparse checkout example | ||||
|      # Sparse checkout | ||||
|       - name: Sparse checkout | ||||
|         uses: ./ | ||||
|         with: | ||||
|           sparse-checkout: | | ||||
|             __test__ | ||||
|             .github | ||||
|             src | ||||
|             dist | ||||
|       - name: Verify sparse checkout basic | ||||
|         run: __test__/verify-sparse-checkout-basic.sh | ||||
|       - name: Verify sparse checkout example | ||||
|  |  | |||
|  | @ -4,7 +4,7 @@ | |||
| for pattern in $(git ls-tree --name-only HEAD) | ||||
| do | ||||
|   if [ -d "$pattern" ]; then | ||||
|     if [[ "$pattern" != "__test__" && "$pattern" != ".github" && "$pattern" != "src" ]]; then | ||||
|     if [[ "$pattern" != "__test__" && "$pattern" != ".github" && "$pattern" != "dist" ]]; then | ||||
|       echo "Expected directory '$pattern' to not exist" | ||||
|       exit 1 | ||||
|     fi | ||||
|  | @ -39,13 +39,13 @@ do | |||
|   fi | ||||
| done | ||||
| 
 | ||||
| # Check that src and its childrens has been fetched correctly | ||||
| if [ ! -d "./src" ]; then | ||||
|   echo "Expected directory 'src' to exist" | ||||
| # Check that dist and its childrens has been fetched correctly | ||||
| if [ ! -d "./dist" ]; then | ||||
|   echo "Expected directory 'dist' to exist" | ||||
|   exit 1 | ||||
| fi | ||||
| 
 | ||||
| for file in $(git ls-tree -r --name-only HEAD src) | ||||
| for file in $(git ls-tree -r --name-only HEAD dist) | ||||
| do | ||||
|   if [ ! -f "$file" ]; then | ||||
|     echo "Expected file '$file' to exist" | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Daniel
						Daniel