actions: backend testing workflow geeft nu ook een coverage report
This commit is contained in:
		
							parent
							
								
									be2ef0c79d
								
							
						
					
					
						commit
						e9215c50be
					
				
					 1 changed files with 11 additions and 1 deletions
				
			
		
							
								
								
									
										12
									
								
								.github/workflows/backend-testing.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/backend-testing.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -42,4 +42,14 @@ jobs: | ||||||
|         node-version: ${{ matrix.node-version }} |         node-version: ${{ matrix.node-version }} | ||||||
|         cache: 'npm' |         cache: 'npm' | ||||||
|     - run: npm ci |     - run: npm ci | ||||||
|     - run: npm run test:unit -w backend |     - run: npm run test:coverage -w backend | ||||||
|  |     - name: 'Report Backend Coverage' | ||||||
|  |       # Set if: always() to also generate the report if tests are failing | ||||||
|  |       # Only works if you set `reportOnFailure: true` in your vite config as specified above | ||||||
|  |       if: always()  | ||||||
|  |       uses:  davelosert/vitest-coverage-report-action@v2 | ||||||
|  |       with: | ||||||
|  |         name: 'Backend' | ||||||
|  |         json-summary-path: './backend/coverage/coverage-summary.json' | ||||||
|  |         json-final-path: './backend/coverage/coverage-final.json' | ||||||
|  |         vite-config-path: './backend/vitest.config.ts' | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Timo De Meyst
						Timo De Meyst