mirror of
				https://hub.gitmirror.com/https://github.com/actions/checkout.git
				synced 2025-10-31 18:10:02 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			725 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			725 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: Build and Test
 | |
| 
 | |
| on: push
 | |
| 
 | |
| jobs:
 | |
|   test-archive:
 | |
|     runs-on: windows-latest
 | |
|     steps:
 | |
|       # Clone this repo
 | |
|       - name: Checkout
 | |
|         shell: bash
 | |
|         run: |
 | |
|           curl --location --user token:${{ github.token }} --output checkout.tar.gz https://api.github.com/repos/actions/checkout/tarball/${{ github.sha }}
 | |
|           tar -xzf checkout.tar.gz
 | |
|           mv */* ./
 | |
| 
 | |
|       # Basic checkout
 | |
|       - shell: cmd
 | |
|         run: |
 | |
|           echo echo hello > git.cmd
 | |
|           echo ::add-path::%CD%
 | |
| 
 | |
|       - name: Basic checkout
 | |
|         uses: ./
 | |
|         with:
 | |
|           ref: test-data/v2/basic
 | |
|           path: basic
 | |
|       - name: Verify basic
 | |
|         shell: bash
 | |
|         run: __test__/verify-basic.sh container
 | |
| 
 | 
