diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..27b43084f28790c1483c99dafdd5d81ae47ce15d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,31 @@ +image: node:latest + +include: + - project: 'general/templates' + file: '/cicd/npm-audit.gitlab-ci.yml' + +cache: + paths: + - node_modules/ + +stages: + - build + - test + +build: + stage: build + script: + - npm install --production + +test: + stage: test + before_script: + - npm install -g jest + script: + - jest + artifacts: + paths: + - docs/test-report.html + - docs/junit.xml + reports: + junit: docs/junit.xml