mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	realign frontend ci pipeline
This commit is contained in:
		
							parent
							
								
									00eff651e6
								
							
						
					
					
						commit
						1588242876
					
				
							
								
								
									
										16
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							@ -13,6 +13,7 @@ on:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  documentation:
 | 
					  documentation:
 | 
				
			||||||
 | 
					    name: "Build Documentation"
 | 
				
			||||||
    runs-on: ubuntu-20.04
 | 
					    runs-on: ubuntu-20.04
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      -
 | 
					      -
 | 
				
			||||||
@ -44,7 +45,7 @@ jobs:
 | 
				
			|||||||
          name: documentation
 | 
					          name: documentation
 | 
				
			||||||
          path: docs/_build/html/
 | 
					          path: docs/_build/html/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  backend-code-checks:
 | 
					  code-checks-backend:
 | 
				
			||||||
    name: "Backend Code Checks"
 | 
					    name: "Backend Code Checks"
 | 
				
			||||||
    runs-on: ubuntu-20.04
 | 
					    runs-on: ubuntu-20.04
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
@ -84,7 +85,7 @@ jobs:
 | 
				
			|||||||
          cd src/
 | 
					          cd src/
 | 
				
			||||||
          flake8 --max-line-length=88 --ignore=E203,W503
 | 
					          flake8 --max-line-length=88 --ignore=E203,W503
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  frontend-code-checks:
 | 
					  code-checks-frontend:
 | 
				
			||||||
    name: "Frontend Code Checks"
 | 
					    name: "Frontend Code Checks"
 | 
				
			||||||
    runs-on: ubuntu-20.04
 | 
					    runs-on: ubuntu-20.04
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
@ -103,8 +104,8 @@ jobs:
 | 
				
			|||||||
        run:
 | 
					        run:
 | 
				
			||||||
          npx prettier --check --ignore-path Pipfile.lock **/*.js **/*.ts *.md **/*.md
 | 
					          npx prettier --check --ignore-path Pipfile.lock **/*.js **/*.ts *.md **/*.md
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  backend-tests:
 | 
					  tests-backend:
 | 
				
			||||||
    needs: [backend-code-checks]
 | 
					    needs: [code-checks-backend]
 | 
				
			||||||
    name: "Backend Tests (${{ matrix.python-version }})"
 | 
					    name: "Backend Tests (${{ matrix.python-version }})"
 | 
				
			||||||
    runs-on: ubuntu-20.04
 | 
					    runs-on: ubuntu-20.04
 | 
				
			||||||
    strategy:
 | 
					    strategy:
 | 
				
			||||||
@ -165,8 +166,9 @@ jobs:
 | 
				
			|||||||
          pipenv run coveralls --service=github
 | 
					          pipenv run coveralls --service=github
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  tests-frontend:
 | 
					  tests-frontend:
 | 
				
			||||||
 | 
					    needs: [code-checks-frontend]
 | 
				
			||||||
 | 
					    name: "Frontend Tests"
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					 | 
				
			||||||
    strategy:
 | 
					    strategy:
 | 
				
			||||||
      matrix:
 | 
					      matrix:
 | 
				
			||||||
        node-version: [16.x]
 | 
					        node-version: [16.x]
 | 
				
			||||||
@ -184,7 +186,7 @@ jobs:
 | 
				
			|||||||
  build-docker-image:
 | 
					  build-docker-image:
 | 
				
			||||||
    if: github.event_name == 'push' && (startsWith(github.ref, 'refs/heads/feature-') || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/beta' || startsWith(github.ref, 'refs/tags/ngx-') || startsWith(github.ref, 'refs/tags/beta-'))
 | 
					    if: github.event_name == 'push' && (startsWith(github.ref, 'refs/heads/feature-') || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/beta' || startsWith(github.ref, 'refs/tags/ngx-') || startsWith(github.ref, 'refs/tags/beta-'))
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    needs: [backend-tests, frontend-code-checks]
 | 
					    needs: [tests-backend, tests-frontend]
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      -
 | 
					      -
 | 
				
			||||||
        name: Prepare
 | 
					        name: Prepare
 | 
				
			||||||
@ -249,7 +251,7 @@ jobs:
 | 
				
			|||||||
          path: src/documents/static/frontend/
 | 
					          path: src/documents/static/frontend/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  build-release:
 | 
					  build-release:
 | 
				
			||||||
    needs: [build-docker-image, documentation, backend-tests, backend-code-checks, frontend-code-checks]
 | 
					    needs: [build-docker-image, documentation]
 | 
				
			||||||
    runs-on: ubuntu-20.04
 | 
					    runs-on: ubuntu-20.04
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      -
 | 
					      -
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user