From 556bf7b3e9f35fa37171336013a549bb04ba6088 Mon Sep 17 00:00:00 2001 From: Dominik Seeger <dominik.seeger@gmx.net> Date: Fri, 4 Jan 2019 18:59:03 +0100 Subject: [PATCH] added stage for frontend unit tests --- .gitlab-ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 84953ada..d5d3a240 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,6 +39,7 @@ build_frontend: artifacts: paths: - frontend/dist + - frontend/node_modules/ expire_in: 20 minutes cache: key: "$CI_JOB_NAME" @@ -102,6 +103,17 @@ test_frontend: - python manage.py collectstatic --no-input - HEADLESS_TESTS=True pytest --ds=grady.settings.test functional_tests +test_frontend_unit: + image: node:carbon + stage: test + dependencies: + - build_frontend + tags: + - docker + script: + - cd frontend/ + - yarn test:unit + # =========================== Build Image section ============================ # build_backend: -- GitLab