mirror of
				https://github.com/pagefaultgames/pokerogue.git
				synced 2025-10-31 08:25:58 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			44 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: Tests
 | |
| 
 | |
| on:
 | |
|   # Trigger the workflow on push or pull request,
 | |
|   # but only for the main branch
 | |
|   push:
 | |
|     branches:
 | |
|       - main # Trigger on push events to the main branch
 | |
|       - beta # Trigger on push events to the beta branch
 | |
|   pull_request:
 | |
|     branches:
 | |
|       - main # Trigger on pull request events targeting the main branch
 | |
|       - beta # Trigger on pull request events targeting the beta branch
 | |
|   merge_group:
 | |
|     types: [checks_requested]
 | |
| 
 | |
| jobs:
 | |
|   check-path-change-filter:
 | |
|     runs-on: ubuntu-latest
 | |
|     permissions:
 | |
|       pull-requests: read
 | |
|     outputs:
 | |
|       all: ${{ steps.filter.outputs.all }}
 | |
|     steps:
 | |
|       - name: checkout
 | |
|         uses: actions/checkout@v4
 | |
|       - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
 | |
|         id: filter
 | |
|         with:
 | |
|           filters: .github/test-filters.yml
 | |
| 
 | |
|   run-tests:
 | |
|     name: Run Tests
 | |
|     needs: check-path-change-filter
 | |
|     strategy:
 | |
|       matrix:
 | |
|         shard: [1, 2, 3, 4, 5]
 | |
|     uses: ./.github/workflows/test-shard-template.yml
 | |
|     with:
 | |
|       project: main
 | |
|       shard: ${{ matrix.shard }}
 | |
|       totalShards: 5
 | |
|       skip: ${{ needs.check-path-change-filter.outputs.all != 'true'}}
 |