mirror of
				https://github.com/docker/setup-qemu-action.git
				synced 2025-10-30 08:40:09 +08:00 
			
		
		
		
	ci: test workflow and codecov config
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									3ef11caa59
								
							
						
					
					
						commit
						bb62e49118
					
				
							
								
								
									
										12
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @ -2,7 +2,7 @@ name: ci | |||||||
| 
 | 
 | ||||||
| on: | on: | ||||||
|   schedule: |   schedule: | ||||||
|     - cron: '0 10 * * *' # everyday at 10am |     - cron: '0 10 * * *' | ||||||
|   push: |   push: | ||||||
|     branches: |     branches: | ||||||
|       - 'master' |       - 'master' | ||||||
| @ -10,9 +10,6 @@ on: | |||||||
|     tags: |     tags: | ||||||
|       - 'v*' |       - 'v*' | ||||||
|   pull_request: |   pull_request: | ||||||
|     branches: |  | ||||||
|       - 'master' |  | ||||||
|       - 'releases/v*' |  | ||||||
| 
 | 
 | ||||||
| jobs: | jobs: | ||||||
|   main: |   main: | ||||||
| @ -40,9 +37,6 @@ jobs: | |||||||
|       - |       - | ||||||
|         name: Available platforms |         name: Available platforms | ||||||
|         run: echo ${{ steps.qemu.outputs.platforms }} |         run: echo ${{ steps.qemu.outputs.platforms }} | ||||||
|       - |  | ||||||
|         name: Dump context |  | ||||||
|         uses: crazy-max/ghaction-dump-context@v1 |  | ||||||
| 
 | 
 | ||||||
|   error: |   error: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
| @ -67,7 +61,3 @@ jobs: | |||||||
|             echo "::error::Should have failed" |             echo "::error::Should have failed" | ||||||
|             exit 1 |             exit 1 | ||||||
|           fi |           fi | ||||||
|       - |  | ||||||
|         name: Dump context |  | ||||||
|         if: always() |  | ||||||
|         uses: crazy-max/ghaction-dump-context@v1 |  | ||||||
|  | |||||||
							
								
								
									
										26
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,26 @@ | |||||||
|  | name: test | ||||||
|  | 
 | ||||||
|  | on: | ||||||
|  |   push: | ||||||
|  |     branches: | ||||||
|  |       - 'master' | ||||||
|  |       - 'releases/v*' | ||||||
|  |   pull_request: | ||||||
|  | 
 | ||||||
|  | jobs: | ||||||
|  |   test: | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     steps: | ||||||
|  |       - | ||||||
|  |         name: Checkout | ||||||
|  |         uses: actions/checkout@v3 | ||||||
|  |       - | ||||||
|  |         name: Test | ||||||
|  |         uses: docker/bake-action@v2 | ||||||
|  |         with: | ||||||
|  |           targets: test | ||||||
|  |       - | ||||||
|  |         name: Upload coverage | ||||||
|  |         uses: codecov/codecov-action@v3 | ||||||
|  |         with: | ||||||
|  |           file: ./coverage/clover.xml | ||||||
							
								
								
									
										25
									
								
								.github/workflows/validate.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										25
									
								
								.github/workflows/validate.yml
									
									
									
									
										vendored
									
									
								
							| @ -6,13 +6,30 @@ on: | |||||||
|       - 'master' |       - 'master' | ||||||
|       - 'releases/v*' |       - 'releases/v*' | ||||||
|   pull_request: |   pull_request: | ||||||
|     branches: |  | ||||||
|       - 'master' |  | ||||||
|       - 'releases/v*' |  | ||||||
| 
 | 
 | ||||||
| jobs: | jobs: | ||||||
|  |   prepare: | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     outputs: | ||||||
|  |       targets: ${{ steps.targets.outputs.matrix }} | ||||||
|  |     steps: | ||||||
|  |       - | ||||||
|  |         name: Checkout | ||||||
|  |         uses: actions/checkout@v3 | ||||||
|  |       - | ||||||
|  |         name: Targets matrix | ||||||
|  |         id: targets | ||||||
|  |         run: | | ||||||
|  |           echo "matrix=$(docker buildx bake validate --print | jq -cr '.group.validate.targets')" >> $GITHUB_OUTPUT | ||||||
|  | 
 | ||||||
|   validate: |   validate: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|  |     needs: | ||||||
|  |       - prepare | ||||||
|  |     strategy: | ||||||
|  |       fail-fast: false | ||||||
|  |       matrix: | ||||||
|  |         target: ${{ fromJson(needs.prepare.outputs.targets) }} | ||||||
|     steps: |     steps: | ||||||
|       - |       - | ||||||
|         name: Checkout |         name: Checkout | ||||||
| @ -21,4 +38,4 @@ jobs: | |||||||
|         name: Validate |         name: Validate | ||||||
|         uses: docker/bake-action@v2 |         uses: docker/bake-action@v2 | ||||||
|         with: |         with: | ||||||
|           targets: validate |           targets: ${{ matrix.target }} | ||||||
|  | |||||||
| @ -1,6 +1,8 @@ | |||||||
| [](https://github.com/docker/setup-qemu-action/releases/latest) | [](https://github.com/docker/setup-qemu-action/releases/latest) | ||||||
| [](https://github.com/marketplace/actions/docker-setup-qemu) | [](https://github.com/marketplace/actions/docker-setup-qemu) | ||||||
| [](https://github.com/docker/setup-qemu-action/actions?workflow=ci) | [](https://github.com/docker/setup-qemu-action/actions?workflow=ci) | ||||||
|  | [](https://github.com/docker/setup-qemu-action/actions?workflow=test) | ||||||
|  | [](https://codecov.io/gh/docker/setup-qemu-action) | ||||||
| 
 | 
 | ||||||
| ## About | ## About | ||||||
| 
 | 
 | ||||||
|  | |||||||
							
								
								
									
										3
									
								
								codecov.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								codecov.yml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | |||||||
|  | comment: false | ||||||
|  | github_checks: | ||||||
|  |   annotations: false | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 CrazyMax
						CrazyMax