From 2a41e93b4ea6dfc03ec33bff203059962548cd21 Mon Sep 17 00:00:00 2001 From: Dominik Sigmund <dominik.sigmund@br.de> Date: Fri, 14 Feb 2020 13:04:51 +0100 Subject: [PATCH] Add .gitlab-ci.yml --- .gitlab-ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..27b4308 --- /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 -- GitLab