Skip to content
Snippets Groups Projects
Commit 556bf7b3 authored by Dominik Seeger's avatar Dominik Seeger Committed by robinwilliam.hundt
Browse files

added stage for frontend unit tests

parent 6f6883d0
No related branches found
No related tags found
1 merge request!128Merge improve testing
...@@ -39,6 +39,7 @@ build_frontend: ...@@ -39,6 +39,7 @@ build_frontend:
artifacts: artifacts:
paths: paths:
- frontend/dist - frontend/dist
- frontend/node_modules/
expire_in: 20 minutes expire_in: 20 minutes
cache: cache:
key: "$CI_JOB_NAME" key: "$CI_JOB_NAME"
...@@ -102,6 +103,17 @@ test_frontend: ...@@ -102,6 +103,17 @@ test_frontend:
- python manage.py collectstatic --no-input - python manage.py collectstatic --no-input
- HEADLESS_TESTS=True pytest --ds=grady.settings.test functional_tests - 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 Image section ============================ #
build_backend: build_backend:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment