mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Merge pull request #3401 from paperless-ngx/feature/playwright
Development: migrate frontend tests to playwright
This commit is contained in:
		
							
								
								
									
										23
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										23
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							@@ -192,10 +192,25 @@ jobs:
 | 
			
		||||
          node-version: ${{ matrix.node-version }}
 | 
			
		||||
          cache: 'npm'
 | 
			
		||||
          cache-dependency-path: 'src-ui/package-lock.json'
 | 
			
		||||
      - run: cd src-ui && npm ci
 | 
			
		||||
      - run: cd src-ui && npm run lint
 | 
			
		||||
      - run: cd src-ui && npm run test
 | 
			
		||||
      - run: cd src-ui && npm run e2e:ci
 | 
			
		||||
      -
 | 
			
		||||
        name: Install dependencies
 | 
			
		||||
        run: cd src-ui && npm ci
 | 
			
		||||
      -
 | 
			
		||||
        name: Install Playwright
 | 
			
		||||
        run: npx playwright install --with-deps
 | 
			
		||||
      -
 | 
			
		||||
        name: Linting checks
 | 
			
		||||
        run: cd src-ui && npm run lint
 | 
			
		||||
      -
 | 
			
		||||
        name: Run Playwright tests
 | 
			
		||||
        run: cd src-ui && npx playwright test
 | 
			
		||||
      -
 | 
			
		||||
        name: Upload test results
 | 
			
		||||
        if: always()
 | 
			
		||||
        uses: actions/upload-artifact@v3
 | 
			
		||||
        with:
 | 
			
		||||
          name: playwright-report
 | 
			
		||||
          path: src-ui/playwright-report
 | 
			
		||||
 | 
			
		||||
  build-docker-image:
 | 
			
		||||
    name: Build Docker image for ${{ github.ref_name }}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user