mirror of
				https://github.moeyy.xyz/https://github.com/docker/setup-compose-action.git
				synced 2025-10-31 08:26:38 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			43 lines
		
	
	
		
			833 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			833 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: test
 | |
| 
 | |
| concurrency:
 | |
|   group: ${{ github.workflow }}-${{ github.ref }}
 | |
|   cancel-in-progress: true
 | |
| 
 | |
| on:
 | |
|   workflow_dispatch:
 | |
|   push:
 | |
|     branches:
 | |
|       - 'main'
 | |
|       - 'releases/v*'
 | |
|   pull_request:
 | |
| 
 | |
| env:
 | |
|   SETUP_BUILDX_VERSION: "edge"
 | |
| 
 | |
| jobs:
 | |
|   test:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       -
 | |
|         name: Checkout
 | |
|         uses: actions/checkout@v4
 | |
|       -
 | |
|         name: Set up Docker Buildx
 | |
|         uses: docker/setup-buildx-action@v3
 | |
|         with:
 | |
|           version: ${{ env.SETUP_BUILDX_VERSION }}
 | |
|           driver: docker
 | |
|       -
 | |
|         name: Test
 | |
|         uses: docker/bake-action@v6
 | |
|         with:
 | |
|           source: .
 | |
|           targets: test
 | |
|       -
 | |
|         name: Upload coverage
 | |
|         uses: codecov/codecov-action@v5
 | |
|         with:
 | |
|           files: ./coverage/clover.xml
 | |
|           token: ${{ secrets.CODECOV_TOKEN }}
 | 
