]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
realign frontend ci pipeline 527/head
authorMichael Shamoon <4887959+shamoon@users.noreply.github.com>
Fri, 25 Mar 2022 06:59:35 +0000 (23:59 -0700)
committerMichael Shamoon <4887959+shamoon@users.noreply.github.com>
Fri, 25 Mar 2022 07:49:55 +0000 (00:49 -0700)
.github/workflows/ci.yml

index 07ff0e0623f4e956dad3e78d5e2f3a861d61a956..5685610288feef8f756c695d9682bd048f26ede8 100644 (file)
@@ -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:
       -