mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Merge pull request #3597 from paperless-ngx/frontend-unit-testing
Development: frontend unit testing
This commit is contained in:
		
							
								
								
									
										23
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										23
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -199,10 +199,29 @@ jobs: | ||||
|         name: Linting checks | ||||
|         run: cd src-ui && npm run lint | ||||
|       - | ||||
|         name: Run Playwright tests | ||||
|         name: Run Jest unit tests | ||||
|         run: cd src-ui && npm run test | ||||
|       - | ||||
|         name: Upload Jest coverage | ||||
|         if: always() | ||||
|         uses: actions/upload-artifact@v3 | ||||
|         with: | ||||
|           name: jest-coverage-report | ||||
|           path: src-ui/coverage | ||||
|       - | ||||
|         name: Upload frontend coverage to Codecov | ||||
|         if: always() | ||||
|         uses: codecov/codecov-action@v3 | ||||
|         with: | ||||
|           # not required for public repos, but intermittently fails otherwise | ||||
|           token: ${{ secrets.CODECOV_TOKEN }} | ||||
|           # future expansion | ||||
|           flags: frontend | ||||
|       - | ||||
|         name: Run Playwright e2e tests | ||||
|         run: cd src-ui && npx playwright test | ||||
|       - | ||||
|         name: Upload test results | ||||
|         name: Upload Playwright test results | ||||
|         if: always() | ||||
|         uses: actions/upload-artifact@v3 | ||||
|         with: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 shamoon
					shamoon