actions: gebruik van paths bij testing
testing workflows gebruikt paths om enkel te testen als er veranderingen zijn gemaakt die invloed hebben op de testen
This commit is contained in:
		
							parent
							
								
									66e58ef111
								
							
						
					
					
						commit
						b10f967eed
					
				
					 2 changed files with 34 additions and 0 deletions
				
			
		
							
								
								
									
										12
									
								
								.github/workflows/backend-testing.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/backend-testing.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -3,12 +3,24 @@ | |||
| 
 | ||||
| name: Backend Testing | ||||
| 
 | ||||
| # Workflow runs when: | ||||
| #   - a backend js/ts file on "dev" changes | ||||
| #   - a non-draft PR to "dev" with backend js/ts files is opened, is reopened, or changes | ||||
| #   - a draft PR to "dev" with backend js/ts files is marked as ready for review | ||||
| on: | ||||
|   push: | ||||
|     branches: [ "dev" ] | ||||
|     paths: | ||||
|       - 'backend/src/**.[jt]s' | ||||
|       - 'backend/tests/**.[jt]s' | ||||
|       - 'backend/vitest.config.ts' | ||||
|   pull_request: | ||||
|     branches: [ "dev" ] | ||||
|     types: ["synchronize", "ready_for_review", "opened", "reopened"] | ||||
|     paths: | ||||
|       - 'backend/src/**.[jt]s' | ||||
|       - 'backend/tests/**.[jt]s' | ||||
|       - 'backend/vitest.config.ts' | ||||
| 
 | ||||
| 
 | ||||
| jobs: | ||||
|  |  | |||
							
								
								
									
										22
									
								
								.github/workflows/frontend-testing.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										22
									
								
								.github/workflows/frontend-testing.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -3,12 +3,34 @@ | |||
| 
 | ||||
| name: Frontend Testing | ||||
| 
 | ||||
| # Workflow runs when: | ||||
| #   - a frontend js/ts/vue/css file on "dev" changes | ||||
| #   - a non-draft PR to "dev" with frontend js/ts/vue/css files is opened, is reopened, or changes | ||||
| #   - a draft PR to "dev" with frontend js/ts/vue/css files is marked as ready for review | ||||
| on: | ||||
|     push: | ||||
|       branches: [ "dev" ] | ||||
|       paths: | ||||
|         - 'frontend/src/**.[jt]s' | ||||
|         - 'frontend/src/**.vue' | ||||
|         - 'frontend/src/**.css' | ||||
|         - 'frontend/tests/**.[jt]s' | ||||
|         - 'frontend/tests/**.vue' | ||||
|         - 'frontend/tests/**.css' | ||||
|         - 'frontend/vitest.config.ts' | ||||
|         - 'frontend/playwright.config.ts' | ||||
|     pull_request: | ||||
|       branches: [ "dev" ] | ||||
|       types: ["synchronize", "ready_for_review", "opened", "reopened"] | ||||
|       paths: | ||||
|         - 'frontend/src/**.[jt]s' | ||||
|         - 'frontend/src/**.vue' | ||||
|         - 'frontend/src/**.css' | ||||
|         - 'frontend/tests/**.[jt]s' | ||||
|         - 'frontend/tests/**.vue' | ||||
|         - 'frontend/tests/**.css' | ||||
|         - 'frontend/vitest.config.ts' | ||||
|         - 'frontend/playwright.config.ts' | ||||
| 
 | ||||
| jobs: | ||||
|   test: | ||||
|  |  | |||
		Reference in a new issue
	
	 Timo De Meyst
						Timo De Meyst