mirror of
				https://github.com/actions/checkout.git
				synced 2025-10-30 09:18:35 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			48 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: Build and Test
 | |
| 
 | |
| on:
 | |
|   pull_request:
 | |
|   push:
 | |
|     branches:
 | |
|       - main
 | |
|       - releases/*
 | |
| 
 | |
| jobs:
 | |
|   test-proxy:
 | |
|     runs-on: ubuntu-latest
 | |
|     container:
 | |
|       image: alpine/git:latest
 | |
|     services:
 | |
|       squid-proxy:
 | |
|         image: ubuntu/squid:5.6-22.10_edge
 | |
|         ports:
 | |
|           - 3128:3128
 | |
|     env:
 | |
|       https_proxy: http://127.0.0.1:3128
 | |
|     steps:
 | |
|       # Clone this repo
 | |
|       - name: Checkout
 | |
|         uses: actions/checkout@v3
 | |
| 
 | |
|       # Basic checkout using git
 | |
|       - name: Checkout basic
 | |
|         uses: ./
 | |
|         with:
 | |
|           ref: test-data/v2/basic
 | |
|           path: basic
 | |
|       - name: Verify basic
 | |
|         run: __test__/verify-basic.sh
 | |
| 
 | |
|       # Basic checkout using REST API
 | |
|       - name: Remove basic
 | |
|         run: rm -rf basic
 | |
|       - name: Override git version
 | |
|         run: __test__/override-git-version.sh
 | |
|       - name: Basic checkout using REST API
 | |
|         uses: ./
 | |
|         with:
 | |
|           ref: test-data/v2/basic
 | |
|           path: basic
 | |
|       - name: Verify basic
 | |
|         run: __test__/verify-basic.sh --archive
 | 
