Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

realign frontend ci pipeline

Michael Shamoon158824287662
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 07ff0e062..568561028 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -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:
-