diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1ecbeffe212bf59e5699fd0fd98116492ffda2fd..ff5da7b2b13ff47ca651d2cf1feced57b07233d9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -32,6 +32,19 @@ build-dev: - git config --global credential.helper store - yarn deploy-dev +unit-test: + image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/node:16.14.2-alpine3.14 + stage: test + script: + - yarn + - yarn test --ci --reporters=default --reporters=jest-junit + coverage: "/All files[^|]*\\|[^|]*\\s+([\\d\\.]+)/" + artifacts: + when: always + reports: + junit: + - junit.xml + build: image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/node:16.14.2-alpine3.14 stage: build