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